Skip to content

Commit

Permalink
Update CI: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ciriousjoker committed Aug 8, 2024
1 parent 5ddf913 commit 1a748b1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@ on: [push]

jobs:
test:
name: Test
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- name: Checkout (main)
uses: actions/checkout@v4

- name: Detect Flutter version
uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "2.x"
channel: "stable"
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
cache: true
cache-key: flutter # optional, change this to force refresh cache
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path

- name: Analyze
run: flutter analyze --fatal-infos

- name: Get Packages
run: flutter pub get

- run: flutter test --coverage --reporter expanded
- name: Test
run: flutter test --coverage --reporter expanded

0 comments on commit 1a748b1

Please sign in to comment.