-
Notifications
You must be signed in to change notification settings - Fork 15
119 lines (104 loc) · 2.78 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: CI
on:
push:
branches:
- main
- 'v*'
pull_request: {}
env:
CI: 'true'
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
yarn-version: 1.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn lint:js
- run: yarn build
package-tests:
name: Glimmer Apollo Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
yarn-version: 1.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn build
- name: Test Glimmer Apollo
run: yarn workspace glimmer-apollo run test
- name: Test App
run: yarn workspace test-app run test
try-scenarios:
name: ${{ matrix.ember-try-scenario }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-3.27
- ember-release
- ember-beta
- ember-canary
- ember-embroider
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
yarn-version: 1.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn build
- name: Test
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: yarn workspace test-app run ember try:one $EMBER_TRY_SCENARIO
typescript:
name: ${{ matrix.typescript }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
typescript:
- typescript@~4.5.0
- typescript@~4.6.0
- typescript@~4.7.0
- typescript@~4.8.0
- typescript@~4.9.0
- typescript@next
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
yarn-version: 1.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn build
- run: |
yarn add --dev ${{ matrix.typescript }}
yarn tsc --version
working-directory: examples/glimmerx
- run: |
yarn add --dev ${{ matrix.typescript }}
yarn tsc --version
working-directory: packages/glimmer-apollo
- run: yarn test:types
examples-glimmerx:
name: GlimmerX Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
yarn-version: 1.x
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn build
- name: Test
run: yarn workspace glimmerx run test