Skip to content

Commit

Permalink
add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rbik committed Aug 1, 2024
1 parent 115ba81 commit 92b5f7d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
pull_request:
types: [opened, reopened]
push:

jobs:
build:
name: Tests
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.6.0
run_install: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Test with Vitest
run: pnpm test

0 comments on commit 92b5f7d

Please sign in to comment.