Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
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
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
# 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:
# not running Node.js 6 because of incompatibilities in transitive dependencies
node-version: 12.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 }}
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

25 changes: 25 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function() {
getChannelURL('canary')
]).then((urls) => {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.18',
Expand All @@ -30,6 +31,30 @@ module.exports = function() {
}
}
},
{
name: 'ember-lts-3.20',
npm: {
devDependencies: {
'ember-source': '~3.20.0'
}
}
},
{
name: 'ember-lts-3.24',
npm: {
devDependencies: {
'ember-source': '~3.24.0'
}
}
},
{
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'ember-source': '~3.28.0'
}
}
},
{
name: 'ember-release',
npm: {
Expand Down