Skip to content

Commit

Permalink
workflows: Add workflow to build and run tests on every push and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-lorentz committed Mar 25, 2024
1 parent cd5a228 commit 153a415
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 install

0 comments on commit 153a415

Please sign in to comment.