-
Notifications
You must be signed in to change notification settings - Fork 241
49 lines (41 loc) · 1.16 KB
/
test.yml
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
44
45
46
47
48
49
name: Test CLI
on:
pull_request:
paths-ignore:
- "website/**"
- "README.md"
- "CHANGELOG.md"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: "${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
sdk-version: [stable]
include:
- os: macOS-latest
TARGET: macos
- os: ubuntu-latest
TARGET: linux
- os: windows-latest
TARGET: windows
steps:
- uses: actions/checkout@v1
- uses: dart-lang/[email protected]
- name: Cache Dart dependencies
uses: actions/cache@v2
with:
path: "~/.pub-cache"
key: ${{ runner.os }}-dart-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-dart-
- run: dart pub get
- run: ./scripts/build_verssion.dart
- run: dart analyze --fatal-infos --fatal-warnings .
- name: Generate git cache
run: ./bin/fvm.dart install master
- run: dart test