-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (52 loc) · 1.72 KB
/
build-and-test-backend.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
66
name: "[Build & Test] Backend"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "dev" ]
workflow_dispatch:
schedule:
- cron: "0 3 * * *" # 3am every night
permissions:
contents: write
pull-requests: write
jobs:
build-and-test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install and Build Backend
uses: ./.github/actions/install-and-build-backend
- name: "Tests & Coverage"
env:
CI: true
run: make back-test-coverage
- name: Add coverage to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: |
${{ github.workspace }}/**/backend/build/reports/jacoco/**/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
# - name: dependency-check
# uses: dependency-check/Dependency-Check_Action@main
# id: dependency-check
# env:
# JAVA_HOME: ${{ env.JAVA_HOME }}
# with:
# project: 'rapportnav'
# path: './backend'
# format: 'HTML'
# out: 'reports' # this is the default, no need to specify unless you wish to override it
# args: >
# --failOnCVSS 7
# --enableRetired
# - name: Upload Test results
# uses: actions/upload-artifact@master
# with:
# name: dependency-check-report
# path: ${{github.workspace}}/reports
# - name: "Analyse dependencies"
# run: make back-check-dependencies
# - name: "Check clean architecture"
# run: make check-clean-archi