Skip to content

Commit c3de0cb

Browse files
committed
Ran test:ember script in CI
1 parent 55424ac commit c3de0cb

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
env:
1313
NODE_VERSION: 10
14+
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
15+
PERCY_PARALLEL_TOTAL: 1
1416

1517
jobs:
1618
lint:
@@ -42,3 +44,60 @@ jobs:
4244

4345
- name: Lint
4446
run: npm run lint
47+
48+
49+
test-addon-floating:
50+
name: Test addon (floating dependencies)
51+
runs-on: ubuntu-latest
52+
timeout-minutes: 5
53+
steps:
54+
- name: Check out a copy of the repo
55+
uses: actions/checkout@v2
56+
57+
- name: Use Node.js ${{ env.NODE_VERSION }}
58+
uses: actions/setup-node@v2-beta
59+
with:
60+
node-version: ${{ env.NODE_VERSION }}
61+
62+
- name: Install dependencies
63+
run: npm install --no-package-lock
64+
65+
- name: Test
66+
run: npm run test:ember
67+
68+
69+
test-addon-locked:
70+
name: Test addon (locked dependencies)
71+
runs-on: ubuntu-latest
72+
timeout-minutes: 5
73+
steps:
74+
- name: Check out a copy of the repo
75+
uses: actions/checkout@v2
76+
77+
- name: Use Node.js ${{ env.NODE_VERSION }}
78+
uses: actions/setup-node@v2-beta
79+
with:
80+
node-version: ${{ env.NODE_VERSION }}
81+
82+
- name: Cache npm cache and node_modules
83+
id: cache-dependencies
84+
uses: actions/cache@v2
85+
with:
86+
path: |
87+
~/.npm
88+
node_modules
89+
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
90+
restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}-
91+
92+
- name: Install dependencies
93+
run: npm install
94+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
95+
96+
- name: Test
97+
uses: percy/[email protected]
98+
with:
99+
custom-command: npm run test:ember
100+
env:
101+
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
102+
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
103+
PERCY_TOKEN: ee0a9d5c1122d6a21852edf19b5b309aaec18077fb3900c98995c90bc48ed240

0 commit comments

Comments
 (0)