-
-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (50 loc) · 1.39 KB
/
Copy pathfrontend.yml
File metadata and controls
56 lines (50 loc) · 1.39 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
56
name: frontend
on:
push:
branches:
- main
tags:
- '*.*.*'
paths:
- 'frontend/**'
- '.github/workflows/frontend.yml'
pull_request:
paths:
- 'frontend/**'
- '.github/workflows/frontend.yml'
concurrency:
group: frontend-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: frontend
# TODO: add a lint job once ESLint migration replaces the (already-removed in
# @angular-devkit/build-angular v20) `tslint` builder that `yarn lint` calls.
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
container:
image: mcr.microsoft.com/playwright:v1.58.1-noble
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'yarn'
cache-dependency-path: frontend/yarn.lock
- run: yarn install --immutable
- name: Run unit tests
run: yarn test:ci
license:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'yarn'
cache-dependency-path: frontend/yarn.lock
- name: license checker
run: 'npx --yes license-checker --onlyAllow="MIT;ISC;Python-2.0;Apache-2.0;BSD;MPL;CC;Custom: http://github.com/dscape/statsd-parser;" --excludePrivatePackages'