Skip to content

Add environment specific kzg builds #44

Add environment specific kzg builds

Add environment specific kzg builds #44

Workflow file for this run

name: Tests
on:
push:
branches: [master]
tags: ['*']
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
env:
cwd: ${{github.workspace}}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --include=optional
working-directory: ${{github.workspace}}
- run: npm run transpileCJS
- run: npm run fixRequire
- run: npm run test
- run: npm run test:browser
- run: node test/script.cjs