Merge pull request #206 from vicajilau/dependabot/pub/pdf-3.11.2 #446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
flutter_ci: | |
name: Run flutter test and analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create .env file | |
run: | | |
echo '${{ secrets.FLUTTER_ENV_FILE }}' > .env | |
- name: Create key.properties file | |
run: | | |
echo '${{ secrets.ANDROID_KEY_PROPERTIES_FILE }}' > android/key.properties | |
- name: Create local.properties file | |
run: | | |
echo '${{ secrets.ANDROID_LOCAL_PROPERTIES_FILE }}' > android/local.properties | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '12' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- run: flutter pub get | |
- run: flutter analyze | |
- run: flutter test |