Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run acceptance tests against modern Node #427

Merged
merged 1 commit into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: lint
run: yarn lint:js

test:
name: "Node ${{ matrix.node }} - ${{ matrix.os }}"
node-tests:
name: "Node: Node ${{ matrix.node }} - ${{ matrix.os }}"
runs-on: "${{matrix.os}}-latest"

strategy:
Expand Down Expand Up @@ -56,7 +56,38 @@ jobs:
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: test
run: yarn test
run: yarn test:node

acceptance-tests:
name: "Acceptance: Node ${{ matrix.node }} - ${{ matrix.os }}"
runs-on: "${{matrix.os}}-latest"

strategy:
matrix:
os: ['ubuntu', 'windows']
node: ['12', '14']
exclude:
# excludes node 14 on macOS, this is because
# ember-cli (until ~ 3.12) calls
# `fs.writeFileSync('./tmp/.metadata_never_index)` on macOS platforms
# to instruct spotlight to avoid indexing the local tmp folder
# unfortunately, ember-cli does not pass a value for second arg (the
# content to write) and Node 14 added an assertion
#
# TODO: delete this when we have dropped Node 6 and can update
# ember-cli to a version that doesn't do this
- os: 'macOS'
node: '14'

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: test
run: yarn test:ember

floating-test:
name: Floating dependencies
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"start": "ember serve",
"test": "mocha node-tests && ember test",
"test:all": "mocha node-tests && ember try:each",
"test:ember": "ember test",
"test:node": "mocha node-tests",
"test:node:debug": "mocha debug node-tests"
},
Expand Down