forked from mockturtl/dotenv
-
-
Notifications
You must be signed in to change notification settings - Fork 54
43 lines (34 loc) · 959 Bytes
/
flutter-tests.yml
File metadata and controls
43 lines (34 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Flutter Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
flutter-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: flutter-${{ hashFiles('**/pubspec.lock') }}
cache-path: ${{ runner.tool_cache }}/flutter
- name: Show Flutter version
run: flutter --version
- name: Get dependencies
run: flutter pub get
- name: Run tests with coverage
run: flutter test --coverage
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/lcov.info
if-no-files-found: warn