Skip to content

Not Zero core rework #39

Not Zero core rework

Not Zero core rework #39

Workflow file for this run

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 }}