Skip to content

Commit 7992984

Browse files
authored
Merge pull request #258 from emberjs/gh-actions
Gh Actions
2 parents bf9edcd + 24926df commit 7992984

6 files changed

Lines changed: 369 additions & 78 deletions

File tree

.github/workflows/ci-build.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:
6+
- master
7+
- 'v*'
8+
pull_request:
9+
schedule:
10+
- cron: '0 3 * * *' # daily, at 3am
11+
12+
jobs:
13+
test:
14+
name: Tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: volta-cli/action@v1
20+
with:
21+
node-version: 12.x
22+
- run: yarn install --frozen-lockfile
23+
- run: yarn lint
24+
- run: yarn test
25+
26+
floating-dependencies:
27+
name: "Floating Dependencies"
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: volta-cli/action@v1
33+
with:
34+
node-version: 14.x
35+
- run: yarn install --no-lockfile
36+
- run: yarn test
37+
38+
try-scenarios:
39+
name: "Try: ${{ matrix.ember-try-scenario }}"
40+
41+
runs-on: ubuntu-latest
42+
43+
needs: test
44+
45+
strategy:
46+
fail-fast: true
47+
matrix:
48+
ember-try-scenario:
49+
- ember-lts-3.8
50+
- ember-lts-3.12
51+
- ember-lts-3.16
52+
- ember-lts-3.20
53+
- ember-release
54+
- ember-beta
55+
- ember-default-with-jquery
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 & 65 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@ember/string
1+
@ember/string [![CI Build](https://github.com/emberjs/ember-string/actions/workflows/ci-build.yml/badge.svg)](https://github.com/emberjs/ember-string/actions/workflows/ci-build.yml)
22
==============================================================================
33

44
A set of utilities to transform strings extracted from the core of Ember.

config/ember-try.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = function() {
66
return Promise.all([
77
getChannelURL('release'),
88
getChannelURL('beta'),
9-
getChannelURL('canary')
109
]).then((urls) => {
1110
return {
1211
scenarios: [
@@ -78,14 +77,6 @@ module.exports = function() {
7877
}
7978
}
8079
},
81-
{
82-
name: 'ember-canary',
83-
npm: {
84-
devDependencies: {
85-
'ember-source': urls[2]
86-
}
87-
}
88-
},
8980
// The default `.travis.yml` runs this scenario via `npm test`,
9081
// not via `ember try`. It's still included here so that running
9182
// `ember try:each` manually or from a customized CI config will run it

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"scripts": {
1616
"build": "ember build",
17+
"lint": "npm-run-all lint:*",
1718
"lint:hbs": "ember-template-lint .",
1819
"lint:js": "eslint .",
1920
"start": "ember serve",
@@ -59,13 +60,18 @@
5960
"eslint-plugin-ember": "^6.8.2",
6061
"eslint-plugin-node": "^8.0.1",
6162
"loader.js": "^4.7.0",
63+
"npm-run-all": "^4.1.5",
6264
"qunit-dom": "^0.8.5",
6365
"typescript": "^3.5.3"
6466
},
6567
"engines": {
66-
"node": ">= 12.*"
68+
"node": ">= 12.22.3"
6769
},
6870
"ember-addon": {
6971
"configPath": "tests/dummy/config"
72+
},
73+
"volta": {
74+
"node": "12.22.3",
75+
"yarn": "1.22.11"
7076
}
7177
}

0 commit comments

Comments
 (0)