-
-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (32 loc) · 1.03 KB
/
run_unit_tests.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
name: tool/run_unit_tests.dart
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-latest is arm64 and macos-13 is x86_64 details here: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
# Can comment back in to test all beta, dev, 2.16.0, 2.17.0 if needed
sdk: [stable]
steps:
- uses: actions/[email protected]
- uses: dart-lang/[email protected]
- name: Install dependencies
run: |
cd dcli_core
dart pub get
cd ../dcli
dart pub get
cd ..
- name: Activate DCLI from Source
run: |
cd dcli
dart pub global activate -spath .
- name: Run All Tests
run: |
cd dcli
dart test .