-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (30 loc) · 947 Bytes
/
ci.yaml
File metadata and controls
39 lines (30 loc) · 947 Bytes
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: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Run at 5:00 on Friday to detect broken dependencies and such
- cron: '0 5 * * 5'
jobs:
test:
if: ${{ github.event_name != 'release' || github.event.action != 'published' }}
strategy:
matrix:
dart_version: ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7"]
runs-on: ubuntu-latest
container:
image: dart:${{ matrix.dart_version }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2 # needed by codecov
- name: Install dependencies
# The $(command -v pub...) is a hack so the dart "prefix" is only used
# when the pub command is not present
run: $(command -v pub || echo dart pub) get
- name: Analyze
run: dart analyze --fatal-infos
- name: Run tests
run: $(command -v pub || echo dart pub) run test --coverage=./coverage