Skip to content

Commit

Permalink
CI: Configure unit tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 authored Mar 14, 2024
2 parents 20c9e39 + f3172cb commit 8a41200
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Run tests'

on: [push, workflow_dispatch]

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
# TODO: add version to a .nvmrc or at least a variable
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci
- name: Run tests
run: npm run test:unit

0 comments on commit 8a41200

Please sign in to comment.