Skip to content

Commit 5183e24

Browse files
authored
Update workflow to run tests on all OSes (dart-archive/native_synchronization#3)
1 parent 6a24a65 commit 5183e24

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

pkgs/native_synchronization/.github/workflows/dart.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,40 @@ on:
1313
permissions: read-all
1414

1515
jobs:
16-
build:
16+
analyze:
1717
runs-on: ubuntu-latest
1818

1919
steps:
2020
# These are the latest versions of the github actions; dependabot will
2121
# send PRs to keep these up-to-date.
2222
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
2323
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
24+
with:
25+
sdk: dev
2426

2527
- name: Install dependencies
2628
run: dart pub get
27-
29+
2830
- name: Verify formatting
2931
run: dart format --output=none --set-exit-if-changed .
3032

3133
- name: Analyze project source
3234
run: dart analyze --fatal-infos
3335

34-
# - name: Run tests
35-
# run: dart test
36+
test:
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
matrix:
40+
os: [ubuntu-latest, macos-latest, windows-latest]
41+
sdk: [dev]
42+
steps:
43+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
44+
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
45+
with:
46+
sdk: ${{ matrix.sdk }}
47+
48+
- name: Install dependencies
49+
run: dart pub get
50+
51+
- name: Run tests
52+
run: dart test
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
import 'package:test/test.dart';
6+
7+
void main() {
8+
test('dummy', () {});
9+
}

0 commit comments

Comments
 (0)