feat: Chopper Adapter tests #409
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
env: | |
PUB_ENVIRONMENT: bot.github | |
permissions: read-all | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
cache: true | |
- uses: actions/checkout@v4 | |
- name: Install Melos | |
run: dart pub global activate melos | |
- name: Bootstrap the project | |
run: melos bootstrap | |
- name: Check the formatting of one or more Dart files | |
run: melos format --output none --set-exit-if-changed | |
- name: Analyze the project's Dart code | |
run: melos analyze --fatal-infos | |
- name: Invertase Analyze | |
uses: invertase/github-action-dart-analyzer@v3 | |
with: | |
fatal-infos: true | |
fatal-warnings: true | |
working-directory: ./packages | |
test: | |
name: "Test" | |
needs: analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
cache: true | |
- uses: actions/checkout@v4 | |
- name: Install Melos | |
run: dart pub global activate melos | |
- name: Bootstrap the project | |
run: melos bootstrap | |
- name: Run tests | |
run: melos test | |
env: | |
CI: true |