Skip to content

Commit

Permalink
Run unit tests in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Feb 10, 2024
1 parent 3c9670b commit d2524f1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Unit Tests
on:
push:
branches:
- develop
pull_request:

jobs:
vitest:
runs-on: ubuntu-latest
environment: dev
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v3

# Set up the required Node.js version
- name: Set up node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test

0 comments on commit d2524f1

Please sign in to comment.