-
Notifications
You must be signed in to change notification settings - Fork 26
65 lines (53 loc) · 1.53 KB
/
frontend-admin.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Frontend admin
on:
pull_request:
paths:
- 'frontend-angular/**'
- '.github/workflows/frontend-admin.yml'
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Run action checkout
uses: actions/checkout@v4
- name: Install dependencies
working-directory: ./frontend-angular
run: npm install
- name: Run lint
working-directory: ./frontend-angular
run: npm run lint
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Run action checkout
uses: actions/checkout@v4
- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get -y install google-chrome-stable
- name: Install dependencies
working-directory: ./frontend-angular
run: npm install
- name: Run tests
working-directory: ./frontend-angular
run: npm run test
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- name: Run action checkout
uses: actions/checkout@v4
- name: Install dependencies
working-directory: ./frontend-angular
run: npm install
- name: Run test coverage
working-directory: ./frontend-angular
run: npm run test:coverage
- name: Publish coverage results
uses: AthleticNet/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: ./frontend-angular/coverage/frontend-angular/coverage-summary.json
title: Frontend admin coverage