Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main

jobs:
flutter_test:
name: Run Flutter analyze and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
- run: flutter analyze
- run: flutter format --dry-run --set-exit-if-changed lib/
- run: flutter format --dry-run --set-exit-if-changed test/
- run: flutter test --coverage
- run: flutter test --machine > test-results.json
- uses: dorny/test-reporter@v1.4.2
with:
name: test-results
path: test-results.json
reporter: flutter-json
- uses: VeryGoodOpenSource/very_good_coverage@v1.1.1
with:
min_coverage: 0