Skip to content

Commit

Permalink
Add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Mar 15, 2024
1 parent 5fcd234 commit 86ddcb7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit Tests

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch name'
required: true
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name != 'workflow_dispatch' && github.ref_name || inputs.branch}}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

0 comments on commit 86ddcb7

Please sign in to comment.