This repository was archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.51 KB
/
bankingapp.yml
File metadata and controls
58 lines (47 loc) · 1.51 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
name: BankingApp CI
on:
workflow_dispatch:
push:
branches: [ "main", "feature/*" ]
paths:
- "bankingapp/**"
pull_request:
branches: [ "main" ]
paths:
- "bankingapp/**"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./bankingapp
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@v3.0.3
with:
directory: ./bankingapp
ignore-maven-wrapper: true
- name: JaCoCo Code Coverage Report
id: jacoco_reporter
uses: PavanMudigonda/jacoco-reporter@v4.8
with:
coverage_results_path: './bankingapp/target/site/jacoco/jacoco.xml'
coverage_report_title: 'Test coverage results'
coverage_report_name: 'Test coverage results'
github_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 80
- name: Add Coverage Job Summary
run: echo "${{ steps.jacoco_reporter.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY
- name: Grype security check
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
grype dir:./target --fail-on high --config ../.grype.yml