-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
13 changed files
with
302 additions
and
19 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 @@ | ||
xlsx.js |
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,89 @@ | ||
name: 'Tests: node.js' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
latest: ${{ steps.set-matrix.outputs.requireds }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
versionsAsRoot: true | ||
type: 'majors' | ||
preset: '>=4' | ||
|
||
latest: | ||
needs: [matrix] | ||
name: 'latest majors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
include: | ||
- node-version: '14.' | ||
env: | ||
TZ: America/New_York | ||
- node-version: '13.' | ||
env: | ||
TZ: Europe/London | ||
- node-version: '12.' | ||
env: | ||
TZ: Asia/Seoul | ||
- node-version: '11.' | ||
env: | ||
TZ: America/Los_Angeles | ||
FMTS: misc | ||
- node-version: '10.' | ||
env: | ||
TZ: Europe/Berlin | ||
FMTS: misc | ||
- node-version: '9.' | ||
env: | ||
TZ: Asia/Kolkata | ||
FMTS: misc | ||
- node-version: '8.' | ||
env: | ||
TZ: Asia/Shanghai | ||
FMTS: misc | ||
- node-version: '7.' | ||
env: | ||
TZ: America/Cancun | ||
FMTS: misc | ||
- node-version: '6.' | ||
env: | ||
TZ: Asia/Seoul | ||
FMTS: misc | ||
- node-version: '5.' | ||
env: | ||
TZ: America/Anchorage | ||
FMTS: misc | ||
- node-version: '4.' | ||
env: | ||
TZ: America/Barbados | ||
FMTS: misc | ||
- node-version: '4.4.7' # see GH issue #1150 | ||
env: | ||
TZ: Asia/Tokyo | ||
FMTS: misc | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install ${{ matrix.node-version }} && npm install' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: make init | ||
- run: 'cd test_files; make all; cd -' | ||
- run: npm run tests-only | ||
|
||
node: | ||
name: 'node 4+' | ||
needs: [latest] | ||
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,42 @@ | ||
name: 'Tests: node.js (io.js)' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
latest: ${{ steps.set-matrix.outputs.requireds }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
type: 'majors' | ||
preset: 'iojs' | ||
|
||
latest: | ||
needs: [matrix] | ||
name: 'latest majors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install ${{ matrix.node-version }} && npm install' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
skip-ls-check: true | ||
- run: make init | ||
- run: 'cd test_files; make all; cd -' | ||
- run: npm run tests-only | ||
|
||
node: | ||
name: 'io.js' | ||
needs: [latest] | ||
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,30 @@ | ||
name: 'Tests: pretest/posttest' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
pretest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: 'lts/*' | ||
- run: make init | ||
- run: 'cd test_files; make all; cd -' | ||
- run: npm run pretest | ||
|
||
# posttest: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: ljharb/actions/node/install@main | ||
# name: 'nvm install lts/* && npm install' | ||
# with: | ||
# node-version: 'lts/*' | ||
# - run: make init | ||
# - run: 'cd test_files; make all; cd -' | ||
# - run: npm run 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,82 @@ | ||
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: | ||
fail-fast: false | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.stable) }} | ||
include: | ||
- node-version: '0.12.' | ||
env: | ||
TZ: America/Cayman | ||
FMTS: misc | ||
- node-version: '0.10.' | ||
env: | ||
TZ: Pacific/Honolulu | ||
FMTS: misc | ||
- node-version: '0.8.' | ||
env: | ||
TZ: America/Mexico_City | ||
FMTS: misc | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install ${{ matrix.node-version }} && npm install' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
skip-ls-check: true | ||
- run: make init | ||
- run: 'cd test_files; make all; cd -' | ||
- run: npm run tests-only | ||
|
||
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: | ||
fail-fast: false | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.unstable) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install ${{ matrix.node-version }} && npm install' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} | ||
skip-ls-check: true | ||
- run: make init | ||
- run: 'cd test_files; make all; cd -' | ||
- run: npm run tests-only | ||
|
||
node: | ||
name: 'node 0.x' | ||
needs: [stable, unstable] | ||
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,15 @@ | ||
name: Automatic Rebase | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
_: | ||
name: "Automatic Rebase" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/rebase@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,12 @@ | ||
name: Require “Allow Edits” | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
_: | ||
name: "Require “Allow Edits”" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ljharb/require-allow-edits@main |
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
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
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
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
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
Oops, something went wrong.