-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.81 KB
/
maven-build-and-test.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: Build and test
on:
push
env:
MAVEN_USERNAME: ${{ secrets.USER }}
MAVEN_PASSWORD: ${{ secrets.TOKEN }}
jobs:
check-code-style:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
cache: 'maven'
server-id: github-ume # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: $GITHUB_WORKSPACE/.github/ # location for the settings.xml file
- name: Check code style
run:
mvn spotless:check --batch-mode --no-transfer-progress --file $GITHUB_WORKSPACE/pom.xml -s $GITHUB_WORKSPACE/.github/settings.xml
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
cache: 'maven'
server-id: github-ume # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: $GITHUB_WORKSPACE/.github/ # location for the settings.xml file
- uses: gacts/install-hurl@v1
- name: Build jar
run:
mvn -U clean package --batch-mode --no-transfer-progress --file $GITHUB_WORKSPACE/pom.xml -s $GITHUB_WORKSPACE/.github/settings.xml
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }}
- name: Integrationtests
run: cd integrationtests && ./start-integrationtests.sh