diff --git a/.github/workflows/dart.yaml b/.github/workflows/dart.yaml index fba0a6c..1d1bc07 100644 --- a/.github/workflows/dart.yaml +++ b/.github/workflows/dart.yaml @@ -13,7 +13,7 @@ on: permissions: read-all jobs: - build: + analyze: runs-on: ubuntu-latest steps: @@ -21,15 +21,32 @@ jobs: # send PRs to keep these up-to-date. - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + with: + sdk: dev - name: Install dependencies run: dart pub get - + - name: Verify formatting run: dart format --output=none --set-exit-if-changed . - name: Analyze project source run: dart analyze --fatal-infos - # - name: Run tests - # run: dart test + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + sdk: [dev] + steps: + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + with: + sdk: ${{ matrix.sdk }} + + - name: Install dependencies + run: dart pub get + + - name: Run tests + run: dart test diff --git a/test/primitives_test.dart b/test/primitives_test.dart new file mode 100644 index 0000000..d68b515 --- /dev/null +++ b/test/primitives_test.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'package:test/test.dart'; + +void main() { + test('dummy', () {}); +}