Skip to content

Commit

Permalink
Add initial GH workflow for frontend test suite
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
myabc committed Jan 22, 2025
1 parent 378469c commit 5394138
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test-frontend-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Frontend test suite"

on:
workflow_dispatch:
push:
branches:
- dev
- release/*
paths:
- 'frontend/**/*.{ts,js,json}'
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'frontend/**/*.{ts,js,json}'

permissions:
contents: read

defaults:
run:
working-directory: ./frontend

jobs:
units:
name: Units
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: '18.13'
cache: npm
cache-dependency-path: frontend/package-lock.json

- name: Install Dependencies
id: npm-i
run: npm i

- name: Test (Angular)
id: npm-test
run: npm test -- --code-coverage

0 comments on commit 5394138

Please sign in to comment.