forked from embroider-build/ember-auto-import
-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (67 loc) · 2.92 KB
/
nodejs.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
name: Node CI
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
eai_scenario: [2.18, stable, beta, canary]
suite:
- 'cd packages/sample-direct && yarn test'
- 'cd packages/sample-direct && yarn test'
- 'cd packages/sample-direct && yarn test:fastboot'
- 'cd packages/sample-direct && yarn test:prod'
- 'cd packages/sample-direct && yarn test:custom-bundles'
- 'cd packages/sample-direct && yarn test:custom-bundles-top'
- 'cd packages/sample-direct && yarn test:custom-bundles-fastboot'
- 'cd packages/sample-direct && yarn test:custom-csp'
- 'cd packages/sample-indirect && yarn test'
- 'cd packages/sample-indirect && yarn test:fastboot'
- 'cd packages/sample-indirect && yarn test:custom-csp'
- 'cd packages/sample-addon && yarn test'
- 'cd packages/sample-failure && yarn test'
- 'cd packages/sample-merged && yarn test'
- 'cd packages/sample-conflict && yarn test'
- 'cd packages/sample-babel7 && yarn test'
- 'cd packages/sample-typescript && yarn test'
- 'cd packages/sample-typescript2 && yarn test'
- 'cd packages/sample-typescript4 && yarn test'
- 'cd packages/sample-noconflict && yarn test'
- 'cd packages/sample-noparse && yarn test'
- 'cd packages/ember-auto-import && yarn test'
- 'cd packages/sample-es-latest && yarn test'
- 'cd packages/sample-skip-babel && yarn test'
- 'cd packages/ember-auto-import && yarn test:node'
exclude:
- suite: 'cd packages/sample-direct && yarn test:custom-bundles'
eai_scenario: 2.18
- suite: 'cd packages/sample-direct && yarn test:custom-bundles-top'
eai_scenario: 2.18
- suite: 'cd packages/sample-direct && yarn test:custom-bundles-fastboot'
eai_scenario: 2.18
include:
- suite: 'for name in `ls packages/*/.eslintrc.js`; do dirname $name; done | xargs yarn eslint'
eai_scenario: ""
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: pick version and install
run: ./scripts/change-ember-cli-version.sh
env:
EAI_SCENARIO: ${{ matrix.eai_scenario }}
- name: test
run: ${{ matrix.suite }}