Skip to content

Commit

Permalink
Merge pull request #174 from elwayman02/gh-actions
Browse files Browse the repository at this point in the history
Switch from Travis to GitHub Actions
  • Loading branch information
elwayman02 authored Jan 7, 2021
2 parents c8bd6c9 + 5967322 commit 6d03e79
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 88 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
branches:
- master
- 'v*'
pull_request:
schedule:
- cron: '0 3 * * *' # daily, at 3am

jobs:
test:
name: Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 10.x
yarn-version: 1.22.5

- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test:ember

floating-dependencies:
name: Floating Dependencies
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 10.x
yarn-version: 1.22.5

- run: yarn install --no-lockfile
- run: yarn test:ember

try-scenarios:
name: "ember-try: ${{ matrix.ember-try-scenario }}"
runs-on: ubuntu-latest
needs: test
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.16
- ember-lts-3.20
- ember-release
- ember-default-with-jquery
- ember-classic
experimental: [false]
include:
- ember-try-scenario: ember-beta
experimental: true
- ember-try-scenario: ember-canary
experimental: true

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 12.x
yarn-version: 1.22.5

- run: yarn install --frozen-lockfile

- name: test
run: yarn ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

28 changes: 5 additions & 23 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,18 @@ module.exports = async function() {
useYarn: true,
scenarios: [
{
name: 'ember-lts-3.8',
npm: {
devDependencies: {
'ember-source': '~3.8.0'
}
}
},
{
name: 'ember-lts-3.12',
name: 'ember-lts-3.16',
npm: {
devDependencies: {
'ember-source': '~3.12.0'
'ember-source': '~3.16.0'
}
}
},
{
name: 'ember-lts-3.16',
name: 'ember-lts-3.20',
npm: {
devDependencies: {
'ember-source': '~3.16.0'
'ember-source': '~3.20.5'
}
}
},
Expand Down Expand Up @@ -54,16 +46,6 @@ module.exports = async function() {
}
}
},
// The default `.travis.yml` runs this scenario via `yarn test`,
// not via `ember try`. It's still included here so that running
// `ember try:each` manually or from a customized CI config will run it
// along with all the other scenarios.
{
name: 'ember-default',
npm: {
devDependencies: {}
}
},
{
name: 'ember-default-with-jquery',
env: {
Expand All @@ -73,7 +55,7 @@ module.exports = async function() {
},
npm: {
devDependencies: {
'@ember/jquery': '^0.5.1'
'@ember/jquery': '^1.1.0'
}
}
},
Expand Down

0 comments on commit 6d03e79

Please sign in to comment.