From 50a4ab96e66df0bacda594a9ce1a2416d2255220 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Wed, 1 Dec 2021 22:06:08 +0100 Subject: [PATCH] CI: Run ember-try scenarios in parallel --- .github/workflows/ci.yml | 24 +++++++++++++------ config/ember-try.js | 50 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 66 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85c655dc..8950d7a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/config/ember-try.js b/config/ember-try.js index 67b9391c..57a0ec3c 100644 --- a/config/ember-try.js +++ b/config/ember-try.js @@ -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: {