-
Notifications
You must be signed in to change notification settings - Fork 51
42 lines (33 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Unit Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- run: corepack enable
- run: corepack install
- name: Install NodeJS
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- name: Restore CI Cache
uses: actions/cache@v4
with:
path: node_modules
key: NODE-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn --immutable
- name: Fix package.json
run: npx biome check --write package.json
- name: Test
run: |
yarn test
npm i -g dpdm && dpdm --exit-code circular:1 --progress=false --warning=false --tree=false ./dist/index.js