Skip to content

Commit 04a5613

Browse files
committed
Switch to GitHub Action
1 parent fd6a697 commit 04a5613

5 files changed

Lines changed: 64 additions & 70 deletions

File tree

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Build
2+
on:
3+
pull_request: {}
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
test:
14+
name: Test (${{ matrix.scenario }})
15+
runs-on: ubuntu-latest
16+
env:
17+
CI: 'true'
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
scenario:
22+
- default
23+
- default-with-lockfile
24+
- default-with-jquery
25+
- default-with-fastboot
26+
- release
27+
- beta
28+
- canary
29+
- lts-3.4
30+
- lts-2.18
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v1
34+
- name: Set up Volta
35+
uses: volta-cli/action@v1
36+
- name: Install dependencies (yarn)
37+
if: matrix.scenario == 'default-with-lockfile'
38+
run: yarn install --non-interactive --frozen-lockfile
39+
- name: Install dependencies (yarn)
40+
if: matrix.scenario != 'default-with-lockfile'
41+
run: yarn install --non-interactive --no-lockfile
42+
- name: Setup ember-try scenario
43+
if: matrix.scenario != 'default' && matrix.scenario != 'default-with-lockfile'
44+
run: >-
45+
yarn ember try:one ember-${{ matrix.scenario }} --skip-cleanup ---
46+
'[ -z "$EMBER_OPTIONAL_FEATURES" ] || echo "::set-env name=EMBER_OPTIONAL_FEATURES::$EMBER_OPTIONAL_FEATURES"'
47+
- name: Lint (hbs)
48+
run: yarn lint:hbs
49+
- name: Lint (js)
50+
run: yarn lint:js
51+
- name: Build
52+
if: matrix.scenario != 'default-with-fastboot'
53+
run: yarn ember build --environment test
54+
- name: Run test
55+
if: matrix.scenario == 'default-with-fastboot'
56+
run: yarn test:fastboot
57+
- name: Run test
58+
if: matrix.scenario != 'default-with-fastboot'
59+
# Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
60+
# See https://github.com/ember-cli/ember-cli/issues/8922
61+
run: EMBER_ENV=test yarn test --path dist

.travis.yml

Lines changed: 0 additions & 68 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-cli-head [![Build Status](https://travis-ci.org/ronco/ember-cli-head.svg?branch=master)](https://travis-ci.org/ronco/ember-cli-head)
1+
# ember-cli-head [![Build Status](https://github.com/ronco/ember-cli-head/workflows/Build/badge.svg?branch=master)](https://github.com/ronco/ember-cli-head/actions?query=branch%3Amaster+workflow%3A%22Build%22)
22

33
This addon adds easy population of head tags from your Ember code
44
without any direct hacky DOM manipulation. This addon also provides

config/ember-try.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module.exports = function() {
7979
}
8080
},
8181
{
82-
name: 'fastboot',
82+
name: 'ember-default-with-fastboot',
8383
command: 'ember fastboot:test',
8484
npm: {
8585
devDependencies: {}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"lint:js": "eslint .",
2020
"start": "ember serve",
2121
"test": "ember test",
22+
"test:fastboot": "ember fastboot:test",
2223
"test:all": "ember try:each"
2324
},
2425
"keywords": [

0 commit comments

Comments
 (0)