-
-
Notifications
You must be signed in to change notification settings - Fork 426
55 lines (44 loc) · 1.31 KB
/
Copy pathfrontend_tests.yml
File metadata and controls
55 lines (44 loc) · 1.31 KB
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
45
46
47
48
49
50
51
52
53
54
55
name: "Frontend: build and test"
on:
workflow_call:
permissions:
contents: read
jobs:
tests:
env:
CI: true
NODE_ENV: dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ github.token }}
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # infered from @v4.1.0
with:
version: 9.15.4
- name: Install node
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # infered from @v3.9.1
with:
node-version: "22.12.0"
cache: "pnpm"
cache-dependency-path: "./frontend/pnpm-lock.yaml"
- name: Install Node dependencies
run: |
cd frontend/
pnpm install --frozen-lockfile
- name: Compile
run: |
cd frontend/
pnpm compile
- name: Linter
run: |
cd frontend/
pnpm lint:CI
- name: Tests
run: |
cd frontend/
pnpm test:CI
# TODO check frontend sonar results in sonarcloud after migration to gradle