rc/1.2.1 #51
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- 'master' | |
- 'dev' | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install sqlite3 | |
run: sudo apt-get install -y sqlite3 libsqlite3-dev | |
- uses: actions/checkout@v4 | |
- name: Create files from secrets | |
env: | |
DOWNLOAD_OPTIONS: ${{ secrets.DOWNLOAD_OPTIONS }} | |
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} | |
run: | | |
echo "$DOWNLOAD_OPTIONS" > ./lib/utils/download_options.dart | |
echo "$FIREBASE_OPTIONS" > ./lib/firebase_options.dart | |
- name: Flutter set up | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- run: flutter --version | |
- name: Flutter get packages | |
run: | | |
flutter pub get | |
flutter pub get | |
- name: Flutter code generation | |
run: dart run build_runner build --delete-conflicting-outputs | |
- name: Flutter test | |
run: flutter test -j 1 |