forked from dart-lang/dartdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (66 loc) · 2.03 KB
/
test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Test
on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 15 * * *
env:
PUB_ENVIRONMENT: bot.github
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [dev, stable]
job: [main, flutter, sdk-analyzer, packages, sdk-docs]
include:
- os: macos-latest
sdk: dev
job: main
- os: windows-latest
sdk: dev
job: main
exclude:
# Do not try to run flutter against the "stable" sdk,
# it is unlikely to work and produces uninteresting
# results.
- sdk: stable
job: flutter
- sdk: stable
job: sdk-analyzer
steps:
- name: Configure git
if: runner.os == 'Windows'
run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: ${{ matrix.job }}
if: runner.os != 'Windows'
run: ./tool/travis.sh
env:
DARTDOC_BOT: ${{ matrix.job }}
#COVERAGE_TOKEN: true # this needs to be set to enable coverage
- name: ${{ matrix.job }}
if: runner.os == 'Windows' && matrix.job == 'main'
run: dart run grinder buildbot
env:
DARTDOC_BOT: ${{ matrix.job }}
# - id: coverage
# name: Upload coverage
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: lcov.info
# - name: Echo coveralls api result
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}