Skip to content

Commit 4552668

Browse files
author
Kelly Selden
committed
Add GitHub Actions
1 parent 968666d commit 4552668

3 files changed

Lines changed: 70 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
schedule:
9+
# nightly
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- uses: actions/[email protected]
19+
20+
- run: npm ci
21+
- run: npm run lint
22+
23+
test:
24+
strategy:
25+
matrix:
26+
runner:
27+
- ubuntu-latest
28+
- macos-latest
29+
node-version:
30+
- 8
31+
- 13
32+
test-command:
33+
- test:fast
34+
- test:slow
35+
36+
runs-on: ${{ matrix.runner }}
37+
38+
steps:
39+
- uses: actions/checkout@v1
40+
- uses: actions/[email protected]
41+
with:
42+
version: ${{ matrix.node-version }}
43+
44+
# for test cache hits
45+
- run: npm i -g [email protected]
46+
47+
- run: npm ci
48+
- run: npm run ${{ matrix.test-command }}
49+
env:
50+
NODE_LTS: ${{ matrix.node-version == 8 }}

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags: v[0-9]+.[0-9]+.[0-9]+
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- run: npm publish
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

test/acceptance/ember-cli-update-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ describe(function() {
198198
await fs.remove(path.join(tmpPath, 'MODULE_REPORT.md'));
199199

200200
let nodeVersion = 'latest-node';
201-
if (process.env.NODE_LTS) {
201+
if (process.env.NODE_LTS === 'true') {
202202
nodeVersion = 'min-node';
203203
}
204204

0 commit comments

Comments
 (0)