Skip to content

Commit d0573d1

Browse files
committed
unify CI with the default output of ember addon
1 parent 8c8f787 commit d0573d1

4 files changed

Lines changed: 79 additions & 52 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request: {}
9+
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
name: "Tests"
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install Node
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 12.x
25+
cache: npm
26+
- name: Install Dependencies
27+
run: npm ci
28+
- name: Lint
29+
run: npm run lint
30+
- name: Run Tests
31+
run: npm run test:ember
32+
33+
floating:
34+
name: "Floating Dependencies"
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: actions/setup-node@v2
40+
with:
41+
node-version: 12.x
42+
cache: npm
43+
- name: Install Dependencies
44+
run: npm install --no-shrinkwrap
45+
- name: Run Tests
46+
run: npm run test:ember
47+
48+
try-scenarios:
49+
name: ${{ matrix.try-scenario }}
50+
runs-on: ubuntu-latest
51+
needs: 'test'
52+
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
try-scenario:
57+
- ember-lts-3.16
58+
- ember-lts-3.20
59+
- ember-release
60+
- ember-beta
61+
- ember-canary
62+
- ember-default-with-jquery
63+
- embroider-safe
64+
- embroider-optimized
65+
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Install Node
69+
uses: actions/setup-node@v2
70+
with:
71+
node-version: 12.x
72+
cache: npm
73+
- name: Install Dependencies
74+
run: npm ci
75+
- name: Run Tests
76+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"start": "ember serve",
3030
"test": "npm-run-all lint test:*",
3131
"test:ember": "ember test",
32-
"test:ember-compatibility": "ember try:each"
32+
"ember-compatibility-tests": "ember try:each"
3333
},
3434
"dependencies": {
3535
"ember-cli-babel": "^7.26.3",

0 commit comments

Comments
 (0)