Skip to content

Commit

Permalink
workflows: Add workflow to run unit tests on every push and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-lorentz committed Dec 8, 2023
1 parent 4122eee commit 12a648e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and run unit tests
on:
push:
pull_request:

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Build and run unit tests
run: mvn --batch-mode clean package

0 comments on commit 12a648e

Please sign in to comment.