Skip to content

Commit b96b58e

Browse files
committed
ci: add job for running unit-tests
1 parent 4bfb7c7 commit b96b58e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ permissions:
1515

1616
env:
1717
CLICOLOR: 1
18+
PNPM_VERSION: 10
19+
NODE_VERSION: 20
1820

1921
jobs:
2022
typos:
@@ -29,3 +31,22 @@ jobs:
2931
env:
3032
RUST_BACKTRACE: 1
3133
CARGO_TERM_COLOR: always
34+
35+
tests:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Check out repository
39+
uses: actions/checkout@v4
40+
- name: Set up pnpm
41+
uses: pnpm/action-setup@v4
42+
with:
43+
version: ${{ env.PNPM_VERSION }}
44+
- name: Set up Node
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: ${{ env.NODE_VERSION }}
48+
cache: pnpm
49+
- name: Install dependencies
50+
run: pnpm install
51+
- name: Run unit-tests
52+
run: pnpm run test

0 commit comments

Comments
 (0)