feat - Story Location #26
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: Test | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "**/*.md" | |
- "**/*.yaml" | |
- "**/*.yml" | |
pull_request: | |
branches: [main] | |
types: [review_requested] | |
paths-ignore: | |
- "**/*.md" | |
- "**/*.yaml" | |
- "**/*.yml" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: 🐦 Setup Flutter SDK v3.19.x | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.19.x | |
channel: stable | |
cache: true | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: ⚙️ Setup environment | |
run: | | |
dart run build_runner build -d | |
flutter gen-l10n | |
dart format lib/interfaces/l10n/gen | |
- name: ✨ Check Formatting | |
run: dart format lib --line-length 80 --set-exit-if-changed | |
- name: 🕵️ Analyze code | |
run: flutter analyze lib | |
# - name: 🕵️ Analyze code | |
# run: flutter analyze lib test | |
# - name: 🧪 Run tests | |
# id: test | |
# run: | | |
# if test -d "test"; then | |
# flutter test --coverage | |
# echo "RESULT=tested" >> "${GITHUB_OUTPUT}" | |
# fi | |
# - name: 📝 Upload coverage to codecov | |
# if: ${{steps.test.outputs.RESULT == 'tested'}} | |
# run: curl -s https://codecov.io/bash | bash |