Skip to content

Commit a899ecc

Browse files
authored
Merge pull request #308 from Turbo87/c1
2 parents 7bec45d + 4e15b3d commit a899ecc

3 files changed

Lines changed: 124 additions & 61 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
- v*
9+
tags:
10+
- v*
11+
pull_request:
12+
13+
jobs:
14+
test:
15+
name: Tests
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v2
21+
with:
22+
node-version: 6.x
23+
24+
- run: yarn install --frozen-lockfile
25+
- run: yarn lint:hbs
26+
- run: yarn lint:js
27+
- run: yarn test
28+
29+
floating-dependencies:
30+
name: "Floating Dependencies"
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-node@v2
36+
with:
37+
# not running Node.js 6 because of incompatibilities in transitive dependencies
38+
node-version: 12.x
39+
40+
- run: yarn install --no-lockfile --ignore-engines
41+
- run: yarn test
42+
43+
try-scenarios:
44+
name: "Try: ${{ matrix.ember-try-scenario }}"
45+
46+
runs-on: ubuntu-latest
47+
48+
needs: test
49+
50+
strategy:
51+
matrix:
52+
ember-try-scenario:
53+
- ember-lts-2.18
54+
- ember-lts-3.4
55+
- ember-lts-3.20
56+
- ember-lts-3.24
57+
- ember-lts-3.28
58+
# disabled due to incompatibility with Ember.js 4
59+
# - ember-release
60+
# - ember-beta
61+
# - ember-canary
62+
- ember-default-with-jquery
63+
64+
steps:
65+
- uses: actions/checkout@v2
66+
- uses: actions/setup-node@v2
67+
with:
68+
# not running Node.js 6 because of incompatibilities in transitive dependencies
69+
node-version: 12.x
70+
71+
- name: install dependencies
72+
run: yarn install --frozen-lockfile
73+
- name: test
74+
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
75+
76+
publish:
77+
name: Publish to npm
78+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v2
83+
84+
- name: Install node
85+
uses: actions/setup-node@v2
86+
with:
87+
node-version: 14.x
88+
registry-url: 'https://registry.npmjs.org'
89+
90+
- name: install dependencies
91+
run: yarn install --frozen-lockfile
92+
93+
- name: auto-dist-tag
94+
run: npx auto-dist-tag@1 --write
95+
96+
- name: publish to npm
97+
run: npm publish
98+
env:
99+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.travis.yml

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

config/ember-try.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = function() {
99
getChannelURL('canary')
1010
]).then((urls) => {
1111
return {
12+
useYarn: true,
1213
scenarios: [
1314
{
1415
name: 'ember-lts-2.18',
@@ -30,6 +31,30 @@ module.exports = function() {
3031
}
3132
}
3233
},
34+
{
35+
name: 'ember-lts-3.20',
36+
npm: {
37+
devDependencies: {
38+
'ember-source': '~3.20.0'
39+
}
40+
}
41+
},
42+
{
43+
name: 'ember-lts-3.24',
44+
npm: {
45+
devDependencies: {
46+
'ember-source': '~3.24.0'
47+
}
48+
}
49+
},
50+
{
51+
name: 'ember-lts-3.28',
52+
npm: {
53+
devDependencies: {
54+
'ember-source': '~3.28.0'
55+
}
56+
}
57+
},
3358
{
3459
name: 'ember-release',
3560
npm: {

0 commit comments

Comments
 (0)