Skip to content

Fix

Fix #50

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Node v${{ matrix.node_version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
node_version: [20.15.0]
os: [ubuntu-latest]
steps:
- name: Checkout Project
uses: actions/checkout@v4
- run: corepack enable && corepack install
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: yarn
- name: Restore CI Cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn --immutable
- name: Build
run: yarn build:tsc
- name: Test
run: |
yarn test:unit
npm i -g dpdm && dpdm --exit-code circular:1 --progress=false --warning=false --tree=false ./dist/index.js