forked from prometheus/client_java
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1023 Bytes
/
test-release-build.yml
File metadata and controls
34 lines (31 loc) · 1023 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
---
name: Test Build Release
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions: {}
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4
with:
version: v2025.7.29
sha256: 72e9e76d0e52998b0dc084c6550aef472091975978586980d703a87240a87fde
- name: Cache local Maven repository
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run the Maven verify phase
run: ./scripts/build-release.sh
env:
# don't ues the current snapshot version, to test a more realistic release
TAG: ${{ github.run_number }}