-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci/actions): setup GitHub Actions
- Loading branch information
1 parent
e89cbfc
commit 8a17d6b
Showing
1 changed file
with
85 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,85 @@ | ||
# This workflow is largely based on | ||
# https://github.com/salsify/ember-css-modules/blob/master/.github/workflows/ci.yml | ||
|
||
name: CI | ||
|
||
# These trigger patterns courtesy of https://github.com/broccolijs/broccoli/pull/436 | ||
on: | ||
pull_request: | ||
push: | ||
# filtering branches here prevents duplicate builds from pull_request and push | ||
branches: | ||
- master | ||
- "v*" | ||
# always run CI for tags | ||
tags: | ||
- "*" | ||
|
||
# early issue detection: run CI weekly on Sundays | ||
schedule: | ||
- cron: "0 6 * * 0" | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
test-locked-deps: | ||
name: Locked Deps | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Lint JS | ||
run: yarn lint:js | ||
- name: Lint Handlebars | ||
run: yarn lint:hbs | ||
- name: Browser Tests | ||
run: yarn test | ||
|
||
test-old-dependencies: | ||
name: Oldest Supported Env | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile --ignore-engines | ||
- name: Browser Tests | ||
run: yarn test | ||
|
||
test-try: | ||
name: Ember Try | ||
runs-on: ubuntu-16.04 | ||
needs: [test-locked-deps] | ||
strategy: | ||
matrix: | ||
scenario: | ||
- ember-2.13 | ||
- ember-lts-2.18 | ||
- ember-lts-3.4 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- ember-default-with-jquery | ||
- ember-default-with-ember-event-helpers | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Try Scenario | ||
run: yarn ember try:one ${{ matrix.scenario }} |