Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 6576c03

Browse files
authored
Update CI bits (#26)
1 parent 7d5e00f commit 6576c03

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/dart.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
name: Dart
22

33
on:
4+
# Run on PRs and pushes to the default branch.
45
push:
56
branches: [ master ]
67
pull_request:
78
branches: [ master ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
env:
13+
PUB_ENVIRONMENT: bot.github
14+
DISPLAY: ':99'
815

916
jobs:
1017
test:
1118
runs-on: ubuntu-latest
12-
13-
env:
14-
DISPLAY: ':99'
15-
19+
strategy:
20+
matrix:
21+
sdk: [2.12.0, dev]
1622
steps:
1723
- uses: actions/checkout@v2
18-
- uses: cedx/setup-dart@v2
24+
- uses: dart-lang/setup-dart@v1.0
1925
with:
20-
release-channel: stable
21-
version: latest
22-
23-
- name: Print Dart SDK version
24-
run: dart --version
26+
sdk: ${{ matrix.sdk }}
2527

26-
- name: Install dependencies
27-
run: dart pub get
28+
- run: dart pub get
29+
id: install
2830

29-
- name: Analyze project source
30-
run: dart analyze
31+
- run: dart analyze --fatal-infos
3132

3233
- name: Run Xvfb
3334
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
3435

35-
- name: Run tests
36-
run: dart test
36+
- run: dart test

0 commit comments

Comments
 (0)