-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 912 Bytes
/
checks.yaml
File metadata and controls
40 lines (32 loc) · 912 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
name: "Checks"
on:
pull_request:
branches: [ main, next, development ]
types: [ opened, synchronize, reopened ]
jobs:
lint-dart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Flutter
uses: flutter-actions/setup-flutter@v4
with:
channel: stable
version: 3.38.8
cache: true
cache-sdk: true
cache-key: ${{ runner.os }}-flutter-${{ hashFiles('pubspec.yaml') }}
- name: Install dependencies
run: flutter pub get
- name: Run analyze
run: flutter analyze
- name: Run tests
run: flutter test --machine > test-results.json
- name: Publish test results
uses: dorny/test-reporter@v1
if: always()
with:
name: Unit Tests
path: test-results.json
reporter: flutter-json