2021-04-08 18:21:37 +00:00
|
|
|
name: 'Tests: node.js (0.x)'
|
|
|
|
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
matrix:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
stable: ${{ steps.set-matrix.outputs.requireds }}
|
2022-02-01 08:57:32 +00:00
|
|
|
# unstable: ${{ steps.set-matrix.outputs.optionals }}
|
2021-04-08 18:21:37 +00:00
|
|
|
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
|
2022-02-01 08:57:32 +00:00
|
|
|
- run: sudo curl -Lo /usr/bin/rooster https://github.com/SheetJS/rooster/releases/download/v0.2.0/rooster-v0.2.0-linux-amd64
|
|
|
|
- run: sudo chmod a+x /usr/bin/rooster
|
2021-04-08 18:21:37 +00:00
|
|
|
- run: make init
|
|
|
|
- run: 'cd test_files; make all; cd -'
|
|
|
|
- run: npm run tests-only
|
2022-03-14 06:51:33 +00:00
|
|
|
#- run: 'cd packages/ssf; npm run tests-only; cd -'
|
2021-04-08 18:21:37 +00:00
|
|
|
|
2022-02-01 08:57:32 +00:00
|
|
|
# unstable:
|
|
|
|
# needs: [matrix, stable]
|
|
|
|
# name: 'unstable minors'
|
|
|
|
# continue-on-error: true
|
|
|
|
# if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
|
|
|
|
# runs-on: ubuntu-latest
|
2021-04-08 18:21:37 +00:00
|
|
|
|
2022-02-01 08:57:32 +00:00
|
|
|
# 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: sudo curl -Lo /usr/bin/rooster https://github.com/SheetJS/rooster/releases/download/v0.2.0/rooster-v0.2.0-linux-amd64
|
|
|
|
# - run: sudo chmod a+x /usr/bin/rooster
|
|
|
|
# - run: make init
|
|
|
|
# - run: 'cd test_files; make all; cd -'
|
|
|
|
# - run: npm run tests-only
|
2021-04-08 18:21:37 +00:00
|
|
|
|
|
|
|
node:
|
|
|
|
name: 'node 0.x'
|
2022-02-01 08:57:32 +00:00
|
|
|
# needs: [stable, unstable]
|
|
|
|
needs: [stable]
|
2021-04-08 18:21:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: 'echo tests completed'
|