-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 937 Bytes
/
build.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
name: Build
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11.4"
- run: python --version
- run: pipx --version
- run: pipx ensurepath
- run: pipx install poetry==1.8.2
- run: pipx inject poetry poetry-plugin-export==1.7.1
- run: pipx install cyclonedx-bom==4.1.5
- name: Build with Maven and run the tests
run: mvn --batch-mode --update-snapshots verify -Dgpg.skip=true