Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
run unit tests as a Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hmuurine committed Mar 16, 2023
1 parent 57c58b2 commit 99c3cc5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run unit tests

on:
push:
branches: ['master']
pull_request:
branches: ['master']

jobs:

build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./

permissions:
contents: write
steps:
- name: "Checkout source code"
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Install library deps
working-directory: ./Frontend/library
run: npm ci

- name: Run frontend lib tests
working-directory: ./Frontend/library
run: npm run test

0 comments on commit 99c3cc5

Please sign in to comment.