This repository has been archived by the owner on Feb 6, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from rwjblue/gh-actions
Add GH Actions Workflow
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'v*' # older version branches | ||
tags: | ||
- '*' | ||
pull_request: {} | ||
schedule: | ||
- cron: '0 6 * * 0' # weekly, on sundays | ||
|
||
jobs: | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8.x | ||
- name: install yarn | ||
run: npm install -g yarn | ||
- name: install dependencies | ||
run: yarn install | ||
- name: lint | ||
run: yarn lint:js | ||
- name: test | ||
run: yarn test | ||
|
||
try-scenarios: | ||
name: ember-try | ||
|
||
runs-on: ubuntu-latest | ||
|
||
needs: test | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
ember-try-scenario: | ||
- ember-lts-1.13 | ||
- ember-lts-2.4 | ||
- ember-lts-2.8 | ||
- ember-lts-2.12 | ||
- ember-lts-2.16 | ||
- ember-lts-2.18 | ||
- ember-lts-3.4 | ||
- ember-lts-3.8 | ||
- ember-lts-3.12 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- ember-default | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: install yarn | ||
run: npm install -g yarn | ||
- name: install dependencies | ||
run: yarn install | ||
- name: test | ||
env: | ||
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }} | ||
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters