-
-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (43 loc) · 1.16 KB
/
dart.yaml
File metadata and controls
53 lines (43 loc) · 1.16 KB
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
43
44
45
46
47
48
49
50
51
52
53
name: package:dart_executor
permissions: read-all
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/dart.yaml"
- "executors/dart**"
push:
branches: [main]
paths:
- ".github/workflows/dart.yaml"
- "executors/dart**"
schedule:
- cron: "0 0 * * 0" # weekly
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: executors/dart
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
with:
sdk: 3.10.0
- run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always()
- name: Analyze code
run: dart analyze --fatal-infos
if: always()
- run: dart test
- run: dart test -p chrome
- name: Check if version is set correctly
run: |
dart bin/set_version.dart
dart bin/make_runnable_by_node.dart
git diff --exit-code