build: add command to logging error #8
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: Build and test | |
on: | |
push: | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure enviroment | |
uses: actions/checkout@v4 | |
- name: Download flutter | |
uses: kuhnroyal/flutter-fvm-config-action@v2 | |
id: fvm-config-action | |
with: | |
path: '.fvmrc' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
cache: true | |
cache-key: 'flutter-:os:-:version:-:arch:' | |
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' | |
- name: Show flutter info | |
run: flutter doctor | |
- name: Install dependencies | |
run: chmod +x tool/setup.sh && sh tool/setup.sh | |
- name: Verify formated files | |
run: dart format $(find . -name "*.dart" -not -wholename "**/*.g.dart") --set-exit-if-changed | |
- name: Analyze code | |
run: flutter analyze | |
- name: Test | |
run: chmod +x tool/unit-test.sh && sh tool/unit-test.sh prod |