Skip to content

*: add multi-version node test matrix #114

*: add multi-version node test matrix

*: add multi-version node test matrix #114

Workflow file for this run

name: Formatting, Types, & Test
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- run: deno fmt --check
- run: deno check prodia.ts
- run: deno test --allow-env --allow-net
env:
PRODIA_TOKEN: ${{ secrets.PRODIA_TOKEN }}
node-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20, 22]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm run prepublish
- run: node example.js