-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 906 Bytes
/
Copy pathbuild.yaml
File metadata and controls
37 lines (31 loc) · 906 Bytes
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: cta4j Java SDK - Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v5.6.0
with:
distribution: 'corretto'
java-version: '25'
cache: 'maven'
- name: Read project version from pom.xml
id: ver
run: |
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.5.0:exec)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Build with Maven
run: mvn -B -Dgpg.skip=true clean verify