-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport TravisCI to GitHub Actions migration
- Loading branch information
Showing
2 changed files
with
95 additions
and
61 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,95 @@ | ||
name: CI Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- v* | ||
tags: | ||
- v* | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 6.x | ||
|
||
- run: yarn install --frozen-lockfile | ||
- run: yarn lint:hbs | ||
- run: yarn lint:js | ||
- run: yarn test | ||
|
||
floating-dependencies: | ||
name: "Floating Dependencies" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
# not running Node.js 6 because of incompatibilities in transitive dependencies | ||
node-version: 12.x | ||
|
||
- run: yarn install --no-lockfile --ignore-engines | ||
- run: yarn test | ||
|
||
try-scenarios: | ||
name: "Try: ${{ matrix.ember-try-scenario }}" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
needs: test | ||
|
||
strategy: | ||
matrix: | ||
ember-try-scenario: | ||
- ember-lts-2.18 | ||
- ember-lts-3.4 | ||
# disabled due to incompatibility with Ember.js 4 | ||
# - ember-release | ||
# - ember-beta | ||
# - ember-canary | ||
- ember-default-with-jquery | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 6.x | ||
|
||
- name: install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: test | ||
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup | ||
|
||
publish: | ||
name: Publish to npm | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: auto-dist-tag | ||
run: npx auto-dist-tag@1 --write | ||
|
||
- name: publish to npm | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file was deleted.
Oops, something went wrong.