-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.3 KB
/
frontend.yaml
File metadata and controls
61 lines (50 loc) · 1.3 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
57
58
59
60
61
name: Frontend build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Installazione Node.js and NPM
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Installazione Vue CLI
run: |
npm install -g @vue/cli
- name: Installazione Dipendenze Bootstrap
run: |
npm install jquery popper.js
- name: Installazione Vue.js dependencies
run: |
cd frontend
npm install
- name: Build FrontEnd
run: |
cd frontend
npm run build
- name: Linting Codice Vue.js
run: |
cd frontend
npm run lint
- name: Build Unit Test
run: |
cd frontend
npm run test:unit
- name: Run Vue.js tests and generate coverage report
run: |
cd frontend
npx jest --coverage
- name: Upload frontend coverage report to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: frontend/coverage/lcov.info
flags: frontend
name: frontend-coverage