Skip to content

Commit

Permalink
ci: add vitest unit test github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Nov 5, 2024
1 parent f69c816 commit 1a388c6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/vitest-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run vitest unit tests for pages functions
on:
workflow_dispatch:
pull_request:

env:
NODE_ENV: "test"

jobs:
testing:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"

- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: yarn

- name: Run tests
run: npx vitest --run

0 comments on commit 1a388c6

Please sign in to comment.