-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (31 loc) · 953 Bytes
/
build.yaml
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
name: Dart
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 * * 0"
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
- uses: nanasess/setup-chromedriver@95301782a076fbe8c9ecf54395a4689f7b195285
- name: Install dependencies
run: dart pub get
- name: Validate formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze source code
run: dart analyze
# Disabled; tracked via #75.
# - name: Run tests
# run: |
# export DISPLAY=:99
# chromedriver --port=4444 --url-base=/wd/hub &
# sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
# dart test
# env:
# CHROMEDRIVER_ARGS: '--no-sandbox --headless'