Not Zero core rework #39
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: Analyze and check app | |
on: | |
pull_request: | |
jobs: | |
check: | |
name: Check application | |
runs-on: ubuntu-latest | |
steps: | |
### INITIAL ### | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.1' | |
channel: stable | |
cache: true | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.pub-cache/git | |
~/.pub-cache/hosted | |
### PREPARATION ### | |
- name: Check flutter installation | |
run: flutter --version | |
- name: Get dependecies and generate all needed code | |
run: make gen | |
### ANALYSIS ### | |
- name: Ensure that code is formatted correctly | |
run: flutter format --set-exit-if-changed --dry-run $(git ls-files | grep --colour=never -e ".*\.dart") | |
- name: Analyze code to find critical problems | |
run: flutter analyze --no-fatal-infos | |
### TESTS ### | |
- name: Run tests | |
run: make test | |
### REPORT ### | |
- name: Dart Code Metrics | |
uses: dart-code-checker/dart-code-metrics-action@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |