-
Notifications
You must be signed in to change notification settings - Fork 25
85 lines (72 loc) · 2.01 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
name: CI
on: [push, pull_request]
env:
NODE_VERSION: 14
jobs:
lint:
name: Linters
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --non-interactive
- name: Run lint
run: yarn lint
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
matrix:
node:
- "14"
- "16"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v2
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: "Test with node: ${{ matrix.node }}"
run: yarn test:ember
try-scenarios:
name: "Compatibility"
timeout-minutes: 10
runs-on: ubuntu-latest
needs: tests
strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.24
- ember-lts-3.28
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery
- ember-classic
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Test ember:try scenario ${{ matrix.ember-try-scenario }}
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup