Not Zero core rework #44
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.24.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 dependencies | |
run: dart run melos bootstrap | |
### ANALYSIS ### | |
- name: Ensure that code is formatted correctly | |
run: dart run melos format --set-exit-if-changed --output none $(git ls-files | grep --colour=never -e ".*\.dart") | |
- name: Analyze code to find critical problems | |
run: dart run melos exec flutter analyze --no-fatal-infos | |
# ### TESTS ### | |
# - name: Run tests | |
# run: make test |