Skip to content

Commit 1b2f526

Browse files
committed
ci: add validation workflow
just to validate that a branch or pr still builds and passes all checks
1 parent 4375755 commit 1b2f526

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/validate.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate
2+
on:
3+
push:
4+
branches: [ "**" ]
5+
tags-ignore: [ "**" ]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
cancel-in-progress: true
13+
group: validate-${{ github.event.pull_request.number || github.ref }}
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup java
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: 11
26+
check-latest: true
27+
distribution: 'zulu'
28+
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v4
31+
with:
32+
add-job-summary: always
33+
cache-cleanup: on-success
34+
cache-read-only: ${{ github.ref != 'refs/heads/v3' }}
35+
36+
- name: Execute build
37+
run: ./gradlew clean build --stacktrace

0 commit comments

Comments
 (0)