Skip to content

Commit 9792870

Browse files
author
Robert Jackson
authored
Merge pull request #618 from ember-cli/gh-actions
2 parents ad9f747 + fe9ec50 commit 9792870

4 files changed

Lines changed: 99 additions & 77 deletions

File tree

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches: [ master, 'v*' ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
10+
jobs:
11+
test:
12+
name: Tests
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: volta-cli/action@v1
18+
- run: yarn install --frozen-lockfile
19+
- run: yarn lint
20+
- run: yarn test:ember
21+
22+
floating-dependencies:
23+
name: "Floating Dependencies"
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: volta-cli/action@v1
29+
- run: yarn install --no-lockfile
30+
- run: yarn test:ember
31+
32+
try-scenarios:
33+
name: "Try: ${{ matrix.ember-try-scenario }}"
34+
35+
runs-on: ubuntu-latest
36+
37+
needs: test
38+
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
ember-try-scenario:
43+
- ember-default-with-jquery
44+
- ember-default-with-mocha
45+
- ember-classic
46+
- embroider
47+
- embroider-with-mocha
48+
- embroider-optimized
49+
- embroider-optimized-with-mocha
50+
- ember-lts-3.20
51+
- ember-lts-3.16
52+
- ember-lts-3.12
53+
- ember-release
54+
- ember-beta
55+
- ember-canary
56+
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: volta-cli/action@v1
60+
with:
61+
node-version: 12.x
62+
- name: install dependencies
63+
run: yarn install --frozen-lockfile
64+
- name: test
65+
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

.travis.yml

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

config/ember-try.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ module.exports = async function() {
7171
}
7272
}
7373
},
74+
{
75+
name: 'ember-default-with-mocha',
76+
npm: {
77+
devDependencies: {
78+
'ember-mocha': '*'
79+
}
80+
}
81+
},
7482
{
7583
name: 'ember-classic',
7684
env: {
@@ -96,6 +104,17 @@ module.exports = async function() {
96104
},
97105
},
98106
},
107+
{
108+
name: 'embroider-with-mocha',
109+
npm: {
110+
devDependencies: {
111+
'@embroider/core': '*',
112+
'@embroider/webpack': '*',
113+
'@embroider/compat': '*',
114+
'ember-mocha': '*',
115+
},
116+
},
117+
},
99118
{
100119
name: 'embroider-optimized',
101120
npm: {
@@ -105,6 +124,17 @@ module.exports = async function() {
105124
'@embroider/compat': '*',
106125
},
107126
}
127+
},
128+
{
129+
name: 'embroider-optimized-with-mocha',
130+
npm: {
131+
devDependencies: {
132+
'@embroider/core': '*',
133+
'@embroider/webpack': '*',
134+
'@embroider/compat': '*',
135+
'ember-mocha': '*',
136+
},
137+
}
108138
}
109139
]
110140
};

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,9 @@
127127
"release": true,
128128
"tokenRef": "GITHUB_AUTH"
129129
}
130+
},
131+
"volta": {
132+
"node": "10.23.0",
133+
"yarn": "1.22.10"
130134
}
131135
}

0 commit comments

Comments
 (0)