Update Jenkinsfile #63
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: App Plateia | |
on: | |
push: | |
branches: | |
- master | |
- release | |
pull_request: | |
branches: | |
- master | |
- release | |
env: | |
URL_API: http://site | |
URL_RECUPERAR_SENHA: http://site | |
jobs: | |
semantic-pull-request: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 | |
build: | |
defaults: | |
run: | |
working-directory: "." | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v2 | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.7.11 | |
channel: stable | |
cache: true | |
- name: 📦 Install Dependencies | |
run: | | |
flutter pub global activate very_good_cli | |
very_good --analytics false | |
very_good packages get --recursive | |
- name: 🧬 Generate Code | |
run: flutter pub run build_runner build --delete-conflicting-outputs | |
- name: 🕵️ Analyze | |
run: flutter analyze lib test | |
- name: 🧪 Run Tests | |
run: very_good test -j 4 --optimization --coverage --test-randomize-ordering-seed random | |
- name: 📊 Check Code Coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v1 | |
with: | |
path: ./coverage/lcov.info | |
exclude: "*.g.dart *.freezed.dart *.config.dart *.gen.dart" | |
min_coverage: 60 |