This repository has been archived on 2024-07-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
rebory/.github/workflows/test.yml
Matheus Sampaio Queiroga e370c9eaa5
Some checks failed
Test / test_cross (19.x) (push) Has been cancelled
Test / test_cross (18.x) (push) Has been cancelled
Test / test_cross (20.x) (push) Has been cancelled
Test / test_cross (21.x) (push) Has been cancelled
Update timeout
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2024-03-18 12:23:28 -03:00

53 lines
1.0 KiB
YAML

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_cross:
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 18.x
- 19.x
- 20.x
- 21.x
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
name: Setup Node.js
with:
node-version: ${{ matrix.node_version }}
- name: "Setup zig"
uses: korandoru/setup-zig@v1
with:
zig-version: "0.11.0"
- name: Install dependencies
run: |
npm install --no-save
cd test
npm install --no-save --ignore-scripts
- name: Test
timeout-minutes: 70
run: node --no-warnings --loader ts-node/esm src/bin/index.ts -w test build -r
env:
FORCE_COLOR: "1"
- name: Upload prebuilds interface
uses: actions/upload-artifact@v3
if: always()
with:
retention-days: 7
name: build_${{ matrix.node_version }}
path: "test/build"