-
Notifications
You must be signed in to change notification settings - Fork 9
105 lines (92 loc) · 2.71 KB
/
CI.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: CI
on:
pull_request:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
- 'v*'
# always run CI for tags
tags:
- '*'
push:
branches:
- master
- 'v*'
jobs:
lint:
name: 'Linting'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn lint
tests_linux:
needs: lint
name: 'Tests: ubuntu (node@${{ matrix.node-version }})'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12', '14']
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test:ember
tests_other:
needs: lint
name: 'Tests: ${{ matrix.os }}'
runs-on: '${{ matrix.os }}-latest'
strategy:
matrix:
os: [macOS, windows]
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test:ember
tests_ember_compat:
needs: [lint, tests_linux]
name: 'Ember compatibility tests: ember-source@${{ matrix.ember-version }})'
runs-on: ubuntu-latest
strategy:
matrix:
ember-version:
['lts-3.24', 'release', 'beta', 'canary', 'default-with-jquery', 'classic']
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn ember try:one ember-${{ matrix.ember-version }}
tests_embroider_compat:
needs: [lint, tests_linux]
name: 'Embroider compatibility tests: ${{ matrix.embroider-version }})'
runs-on: ubuntu-latest
strategy:
matrix:
embroider-version:
['safe', 'optimized']
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn ember try:one embroider-${{ matrix.embroider-version }}
tests_ts_compat:
needs: lint
name: 'Type checking: TS ${{ matrix.ts-version }}'
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
ts-version: ['3.7', '3.8', '3.9', '4.0', '4.1', '4.2', '4.3', '4.4', '4.5', 'next']
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- run: yarn install --frozen-lockfile --non-interactive
- run: './node_modules/.bin/ember try:one ts-${{ matrix.ts-version }}'