-
Notifications
You must be signed in to change notification settings - Fork 271
55 lines (42 loc) · 1.23 KB
/
rxdart-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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Dart CI
on:
push:
branches: [ master ]
paths-ignore: [ '**.md', 'examples/**' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md', 'examples/**' ]
schedule:
# Runs at 00:00 UTC on the 1, 8, 15, 22 and 29th of every month.
- cron: '0 0 */7 * *'
workflow_dispatch:
jobs:
analyze-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [ beta, stable, 2.17.0, 2.15.0, 2.12.0 ]
steps:
- uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- name: Install melos
run: dart pub global activate melos
- name: Print Dart version
run: dart --version
- name: Install dependencies
run: melos run pub-get-no-private
- name: Analyze
if: ${{ matrix.sdk == 'stable' }}
run: melos run analyze-no-private
- name: Format code
if: ${{ matrix.sdk == 'stable' }}
run: melos run format-no-private
- name: Active coverage
run: dart pub global activate coverage
- name: Run tests
run: melos run test-rxdart
- uses: codecov/[email protected]
if: ${{ matrix.sdk == 'stable' }}