-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.14 KB
/
build-and-test-frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "[Build & Test] Frontend"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "dev" ]
workflow_dispatch:
schedule:
- cron: "0 3 * * *" # 3am every night
jobs:
build-and-test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install and Build Frontend
uses: ./.github/actions/install-and-build-frontend
- name: Analyse dependencies
uses: oke-py/npm-audit-action@v2
with:
audit_level: high
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_assignees: lwih
issue_labels: vulnerability,test
dedupe_issues: true
working_directory: frontend
- name: ESLint
run: make front-lint
- name: Tests & Coverage
run: make front-coverage
- name: Report Coverage
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: frontend