-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab6a14c
commit b2674b8
Showing
1 changed file
with
110 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,110 @@ | ||
name: CI | ||
|
||
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 Dependencies | ||
runs-on: ubuntu-latest | ||
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 --non-interactive | ||
- name: Lint HBS | ||
run: yarn lint:hbs | ||
- name: Lint JS | ||
run: yarn lint:js | ||
- name: Browser Tests | ||
run: yarn test | ||
|
||
test-floating-deps: | ||
name: Floating Dependencies | ||
runs-on: ubuntu-latest | ||
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 --no-lockfile --non-interactive | ||
- name: Browser Tests | ||
run: yarn test | ||
|
||
test-ember-try: | ||
name: Ember Try | ||
runs-on: ubuntu-latest | ||
needs: [test-locked-deps, test-floating-deps] | ||
strategy: | ||
matrix: | ||
scenario: | ||
- ember-3.13 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- ember-default-with-jquery | ||
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 --no-lockfile --non-interactive | ||
- name: Scenario | ||
run: yarn ember try:one ${{ matrix.scenario }} | ||
|
||
# deploy: | ||
# name: Production Deploy | ||
# runs-on: ubuntu-latest | ||
# needs: [test-ember-try] | ||
# if: (branch = master OR tag IS present) AND type = push | ||
# 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: Sass App | ||
# run: yarn workspace sass-app test | ||
# - name: Dummy Addon | ||
# run: yarn workspace dummy-addon test | ||
# - name: Plugin Addon | ||
# run: yarn workspace plugin-addon test | ||
|
||
# publish: | ||
# name: NPM Publish | ||
# runs-on: ubuntu-latest | ||
# needs: [deploy] | ||
# steps: | ||
# - name: Checkout Code | ||
# uses: primer/publish@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
# args: '--dry-run -- --unsafe-perm' |