Config: update widget testing and add widget testing command to workflow #9
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
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Running Flutter analysis on package code | |
run: flutter analyze --no-fatal-infos --no-fatal-warnings --write=analysis_report.txt | |
- name: Artifact analysis report | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: analysis-report | |
path: | | |
analysis_report.txt | |
retention-days: 15 | |
- name: Runing widget testing | |
run: flutter test --verbose | |
- name: Check Publish Warnings | |
run: dart pub publish --dry-run |