Skip to content

Commit

Permalink
Merge pull request #618 from ember-cli/gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Oct 28, 2020
2 parents ad9f747 + fe9ec50 commit 9792870
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 77 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI Build

on:
push:
branches: [ master, 'v*' ]
pull_request:
branches: [ master ]


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

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- 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
- run: yarn install --no-lockfile
- run: yarn test:ember

try-scenarios:
name: "Try: ${{ matrix.ember-try-scenario }}"

runs-on: ubuntu-latest

needs: test

strategy:
fail-fast: false
matrix:
ember-try-scenario:
- ember-default-with-jquery
- ember-default-with-mocha
- ember-classic
- embroider
- embroider-with-mocha
- embroider-optimized
- embroider-optimized-with-mocha
- ember-lts-3.20
- ember-lts-3.16
- ember-lts-3.12
- ember-release
- ember-beta
- ember-canary

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
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
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

30 changes: 30 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ module.exports = async function() {
}
}
},
{
name: 'ember-default-with-mocha',
npm: {
devDependencies: {
'ember-mocha': '*'
}
}
},
{
name: 'ember-classic',
env: {
Expand All @@ -96,6 +104,17 @@ module.exports = async function() {
},
},
},
{
name: 'embroider-with-mocha',
npm: {
devDependencies: {
'@embroider/core': '*',
'@embroider/webpack': '*',
'@embroider/compat': '*',
'ember-mocha': '*',
},
},
},
{
name: 'embroider-optimized',
npm: {
Expand All @@ -105,6 +124,17 @@ module.exports = async function() {
'@embroider/compat': '*',
},
}
},
{
name: 'embroider-optimized-with-mocha',
npm: {
devDependencies: {
'@embroider/core': '*',
'@embroider/webpack': '*',
'@embroider/compat': '*',
'ember-mocha': '*',
},
}
}
]
};
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,9 @@
"release": true,
"tokenRef": "GITHUB_AUTH"
}
},
"volta": {
"node": "10.23.0",
"yarn": "1.22.10"
}
}

0 comments on commit 9792870

Please sign in to comment.