Skip to content

Commit

Permalink
run github action tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiupover committed Jul 17, 2020
1 parent 7e3979a commit 74758a2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 6 deletions.
59 changes: 53 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 74758a2

Please sign in to comment.