-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
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 | ||
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: Build | ||
run: tsc -p src | ||
|
||
- name: Test | ||
run: | | ||
yarn test | ||
npm i -g dpdm && dpdm --exit-code circular:1 --progress=false --warning=false --tree=false ./dist/index.js |