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 cdd52e3 commit ee2ceb1
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test-frontend-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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: Register plugins
id: npm-run-ci-plugins-register-frontend
run: npm run ci:plugins:register_frontend

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

0 comments on commit ee2ceb1

Please sign in to comment.