Skip to content

Commit

Permalink
CI: Adds the test step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Mar 14, 2024
1 parent 20c9e39 commit c513143
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/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: 16.13.x
cache: npm
- name: Install
run: npm ci
- name: Run tests
run: npm run test:unit

0 comments on commit c513143

Please sign in to comment.