Skip to content

Commit 3fd7d80

Browse files
authored
Create build-only.yml without tests: no secrets needed
1 parent aaa30fd commit 3fd7d80

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build-only.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Only
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-only:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: maven
22+
23+
# This build step does not need secrets
24+
# and can therefore be executed from any fork
25+
- name: Build only
26+
run: mvn -B package -DskipTests

0 commit comments

Comments
 (0)