Skip to content

Commit a465a1e

Browse files
committed
Gh Actions
1 parent bf9edcd commit a465a1e

5 files changed

Lines changed: 370 additions & 69 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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-canary
56+
- ember-default-with-jquery
57+
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: volta-cli/action@v1
61+
with:
62+
node-version: 12.x
63+
- name: install dependencies
64+
run: yarn install --frozen-lockfile
65+
- name: test
66+
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.

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)