From 74758a2ac61113016bb7b2f2aa9d9652775f2c84 Mon Sep 17 00:00:00 2001 From: Dave Laird Date: Fri, 17 Jul 2020 11:11:19 -0700 Subject: [PATCH] run github action tests in parallel --- .github/workflows/ci.yml | 59 ++++++++++++++++++++++++++++++++++++---- package.json | 2 ++ 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6324a984f..da71b1645 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,32 @@ env: CI: true jobs: - test-legacy: - name: Legacy tests + test-mocha: + name: Legacy Mocha Tests + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install NPM version 4 + run: | + npm config set spin false + npm install -g npm@4 + - name: NPM Install + run: npm install + - name: Run Mocha Tests + run: npm run test:mocha + + test-ember: + name: Legacy Ember Tests runs-on: ubuntu-latest strategy: @@ -44,12 +68,35 @@ jobs: - name: NPM Install run: npm install - name: Run Tests - run: npm run test + run: npm run test:ember + + test-windows-mocha: + name: Legacy Windows Mocha Tests + runs-on: windows-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install NPM version 4 + run: | + npm config set spin false + npm install -g npm@4 + - name: NPM Install + run: npm install + - name: Run Mocha Tests + run: npm run test:mocha - test-windows: - name: Windows + test-windows-ember: + name: Legacy Windows Ember Tests runs-on: windows-latest - needs: [test-legacy] strategy: matrix: diff --git a/package.json b/package.json index 474598fe6..f30dcbf97 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ "release": "release-it", "start": "ember serve", "test": "mocha && ember test", + "test:mocha": "mocha", + "test:ember": "ember test", "test:precook": "node node_modules/ember-cli-addon-tests/scripts/precook-node-modules.js" }, "dependencies": {