Skip to content

Commit f74f0ff

Browse files
committed
ci: configure GitHub Actions to package code
Packaging code includes testing code. Code will be packaged when for pull request to `main` and commits on `main`. This should ensure fully working code on `main`.
1 parent 8703063 commit f74f0ff

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Package
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
# Compile source and target are still specified in pom.xml
20+
java-version: '21'
21+
distribution: 'temurin'
22+
cache: maven
23+
- name: Build with Maven
24+
run: mvn --batch-mode package
25+
26+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
27+
- name: Update dependency graph
28+
uses: advanced-security/maven-dependency-submission-action@v4

0 commit comments

Comments
 (0)