Skip to content

Commit 8feb4cc

Browse files
committed
feat(ci): update .github/workflows/dart.yml workflow
1 parent cbf2b87 commit 8feb4cc

File tree

1 file changed

+7
-34
lines changed

1 file changed

+7
-34
lines changed

.github/workflows/dart.yml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,18 @@ on:
77
branches: [main]
88

99
jobs:
10-
test:
10+
test-stable:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
# Test latest stable, beta, dev, and main channels + last stable release
17-
# prior to the introduction of the unified `dart` developer tool.
18-
sdk: [stable, beta]
16+
version: [3.0.2, 3.0.1, 3.0.0, 2.10.5]
1917
steps:
2018
- uses: actions/checkout@v2
2119
- uses: ./
2220
with:
23-
sdk: ${{ matrix.sdk }}
24-
25-
- name: Dart version
26-
run: dart --version
27-
- name: Flutter version
28-
run: flutter --version
29-
30-
- name: Run hello world
31-
run: |
32-
echo "main() { print('hello world'); }" > hello.dart
33-
dart hello.dart
34-
35-
test-dev:
36-
runs-on: ${{ matrix.os }}
37-
strategy:
38-
fail-fast: false
39-
matrix:
40-
os: [ubuntu-latest, macos-latest, windows-latest]
41-
# Test latest stable, beta, dev, and main channels + last stable release
42-
# prior to the introduction of the unified `dart` developer tool.
43-
sdk: [dev]
44-
version: ["2.1.0-12.1.pre"]
45-
steps:
46-
- uses: actions/checkout@v2
47-
- uses: ./
48-
with:
49-
sdk: ${{ matrix.sdk }}
21+
channel: stable
5022
version: ${{ matrix.version }}
5123

5224
- name: Dart version
@@ -59,18 +31,19 @@ jobs:
5931
echo "main() { print('hello world'); }" > hello.dart
6032
dart hello.dart
6133
62-
test_pub:
34+
test-beta:
6335
runs-on: ${{ matrix.os }}
6436
strategy:
6537
fail-fast: false
6638
matrix:
6739
os: [ubuntu-latest, macos-latest, windows-latest]
68-
sdk: [stable, beta]
40+
version: [3.0.1, 3.1.0-9.0.pre]
6941
steps:
7042
- uses: actions/checkout@v2
7143
- uses: ./
7244
with:
73-
sdk: ${{ matrix.sdk }}
45+
channel: beta
46+
version: ${{ matrix.version }}
7447

7548
- name: Dart version
7649
run: dart --version

0 commit comments

Comments
 (0)