Skip to content

Commit 153a415

Browse files
workflows: Add workflow to build and run tests on every push and PR
1 parent cd5a228 commit 153a415

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build and run unit tests
2+
on:
3+
push:
4+
pull_request:
5+
6+
# Allows to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-java@v4
17+
with:
18+
java-version: '11'
19+
distribution: 'adopt'
20+
- name: Build and run unit tests
21+
run: mvn --batch-mode clean install

0 commit comments

Comments
 (0)