-
-
Notifications
You must be signed in to change notification settings - Fork 101
42 lines (34 loc) · 946 Bytes
/
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
name: Test
on:
pull_request:
paths:
- '.github/workflows/test.yml'
- 'bin/*.dart'
- 'exercises/**/*.dart'
- 'exercises/**/analysis_options.yaml'
- 'exercises/**/pubspec.yaml'
- 'lib/*.dart'
- 'lib/src/*.dart'
- 'test/*.dart'
- 'analysis_options.yaml'
- 'pubspec.*'
jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
tag: ['3.2']
container:
image: dart:${{ matrix.tag }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install dependencies
run: dart pub get
- name: Check Stage formatting
run: dart run bin/check_formatting.dart
# We can't check the exercises because they will produce errors since the example files have the solution.
- name: Analyze Dart code
run: dart analyze bin/ lib/ test/
- name: Run tests
run: dart test