-
Notifications
You must be signed in to change notification settings - Fork 29k
45 lines (43 loc) · 1.36 KB
/
main.yaml
File metadata and controls
45 lines (43 loc) · 1.36 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
---
name: main-branch
on:
workflow_dispatch:
push:
branches:
- main
jobs:
maven-build-job:
runs-on: ubuntu-latest
steps:
- name: get the code
uses: actions/checkout@v6
- name: setup java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: java
- name: package the code
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test
- name: Perform code quality analysis
uses: github/codeql-action/analyze@v4
- name: publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/target/surefire-reports/**/*.xml'
comment_mode: always
docker-build-job:
runs-on: ubuntu-latest
steps:
- name: get the code
uses: actions/checkout@v6
- name: setup docker buildx
uses: docker/setup-buildx-action@v4
- name: build the docker image
uses: docker/build-push-action@v7
with:
push: false
tags: spring-petclinic:latest