Skip to content

Commit

Permalink
chore: split no-edge tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Oct 5, 2022
1 parent 1bd33d6 commit 18c8d30
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,31 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn test

test-no-edge:
needs: lint

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 14

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- run: yarn install --frozen-lockfile
- run: yarn test --config .mocharc.no-edge.js

ember-cli-update:
needs: test
needs: [test, test-no-edge]
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository

runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
spec: ['test/**/*-test.js'],
spec: ['test/!(no-edge)/**/*-test.js'],

// We can't use this while they share the same bin location.
// parallel: true,
Expand Down
7 changes: 7 additions & 0 deletions .mocharc.no-edge.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

module.exports = {
...require('./.mocharc'),

spec: ['test/no-edge/**/*-test.js'],
};

0 comments on commit 18c8d30

Please sign in to comment.