Skip to content

Coin

Coin #88

Workflow file for this run

name: Unit tests
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Testing on Node.js version ${{matrix.node-version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
- name: install dependencies
run: npm install
- name: tests
run: npm run test