Skip to content

Commit

Permalink
CI: Run ember-try scenarios in parallel (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 authored Dec 1, 2021
1 parent 058001d commit 22e3144
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 8 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,25 @@ jobs:
- run: pnpm run test:node

ember-try-scenarios:
name: Ember Tests (${{ matrix.test-suite }})
name: Ember Tests (${{ matrix.try-scenario }})

needs: [test]

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
test-suite:
- test:strip
- test:keep
try-scenario:
- ember-lts-3.8
- ember-lts-3.12
- ember-lts-3.16
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
- ember-release
- ember-beta
- ember-canary

steps:
- uses: actions/checkout@v2
Expand All @@ -80,6 +90,6 @@ jobs:
cache: pnpm

- run: pnpm install
- run: pnpm run test:all -- --skip-cleanup
env:
TEST_SUITE: ${{ matrix.test-suite }}
- run: pnpm ember try:one ${{ matrix.try-scenario }} --skip-cleanup --- echo "${{ matrix.try-scenario }} installed"
- run: pnpm test:keep
- run: pnpm test:strip
50 changes: 49 additions & 1 deletion config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,57 @@ module.exports = function() {
]).then((urls) => {
return {
usePnpm: true,
command: process.env.TEST_SUITE ? `pnpm run ${process.env.TEST_SUITE}` : 'pnpm test',
command: 'pnpm test',
useVersionCompatibility: true,
scenarios: [
{
name: 'ember-lts-3.8',
npm: {
devDependencies: {
'ember-source': '~3.8.0',
},
},
},
{
name: 'ember-lts-3.12',
npm: {
devDependencies: {
'ember-source': '~3.12.0',
},
},
},
{
name: 'ember-lts-3.16',
npm: {
devDependencies: {
'ember-source': '~3.16.0',
},
},
},
{
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

0 comments on commit 22e3144

Please sign in to comment.