-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] migrate tests to Github Actions
- Loading branch information
Showing
5 changed files
with
225 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: 'Tests: node.js' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
latest: ${{ steps.set-matrix.outputs.requireds }} | ||
minors: ${{ steps.set-matrix.outputs.optionals }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
versionsAsRoot: true | ||
preset: '>=4' | ||
|
||
latest: | ||
needs: [matrix] | ||
name: 'latest minors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
command: | ||
- 'tests-only' | ||
- 'tests:shims' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
minors: | ||
needs: [matrix, latest] | ||
name: 'non-latest minors' | ||
continue-on-error: true | ||
if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.minors) }} | ||
command: | ||
- 'tests-only' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
|
||
node: | ||
name: 'node 4+' | ||
needs: [latest, minors] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo tests completed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: 'Tests: node.js (io.js)' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
latest: ${{ steps.set-matrix.outputs.requireds }} | ||
minors: ${{ steps.set-matrix.outputs.optionals }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
versionsAsRoot: true | ||
preset: 'iojs' | ||
|
||
latest: | ||
needs: [matrix] | ||
name: 'latest minors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
command: | ||
- 'tests-only' | ||
- 'tests:shims' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
skip-ls-check: true | ||
|
||
minors: | ||
needs: [matrix, latest] | ||
name: 'non-latest minors' | ||
continue-on-error: true | ||
if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.minors) }} | ||
command: | ||
- 'tests-only' | ||
- 'tests:shims' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
skip-ls-check: true | ||
|
||
node: | ||
name: 'io.js' | ||
needs: [latest, minors] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo tests completed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'Tests: pretest/posttest' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
pretest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run pretest' | ||
with: | ||
node-version: 'lts/*' | ||
command: 'pretest' | ||
|
||
posttest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run posttest' | ||
with: | ||
node-version: 'lts/*' | ||
command: 'posttest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: 'Tests: node.js (0.x)' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
stable: ${{ steps.set-matrix.outputs.requireds }} | ||
unstable: ${{ steps.set-matrix.outputs.optionals }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
versionsAsRoot: true | ||
preset: '0.x' | ||
|
||
stable: | ||
needs: [matrix] | ||
name: 'stable minors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.stable) }} | ||
command: | ||
- 'tests-only' | ||
- 'tests:shims' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
skip-ls-check: true | ||
|
||
unstable: | ||
needs: [matrix, stable] | ||
name: 'unstable minors' | ||
continue-on-error: true | ||
if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.unstable) }} | ||
command: | ||
- 'tests-only' | ||
- 'tests:shims' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/run@main | ||
name: 'npm install && npm run ${{ matrix.command }}' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
command: ${{ matrix.command }} | ||
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
skip-ls-check: true | ||
|
||
node: | ||
name: 'node 0.x' | ||
needs: [stable, unstable] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo tests completed' |
This file was deleted.
Oops, something went wrong.