summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2023-10-18 11:04:11 +0200
committerPaul-Christian Volkmer2023-10-18 11:04:11 +0200
commit0798890f7abfe981df932d1b11dc4bfb8d08beb1 (patch)
treeb74d278aad8e0a985c995c43606e04f4f2f080e2 /.github/workflows
parent6cc8df9da80dce09cbb6e0678701d8d12556068c (diff)
Add Github Workflow to run unit tests
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..b548613
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,33 @@
+name: 'Run Tests'
+
+on:
+ push:
+ branches: [ 'master' ]
+ tags: [ '*' ]
+ pull_request:
+ branches: [ '*' ]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+
+ - name: Fetch Onkostar-API
+ run: |
+ curl --user dnpm:${{ secrets.PACKAGE_TOKEN }} \
+ https://git.dnpm.dev/api/packages/Plugin-JF-Onkostar/generic/onkostar-api/2.11.1.6/onkostar-api-2.11.1.6.jar \
+ --output libs/onkostar-api-2.11.1.6.jar
+
+ - name: Fetch ATC-Codes-Plugin
+ run: |
+ curl \
+ https://github.com/CCC-MF/onkostar-plugin-atccodes/releases/download/v0.6.0/onkostar-plugin-atccodes-0.6.0.jar \
+ --output libs/onkostar-plugin-atccodes-0.6.0.jar
+
+ - name: Execute tests
+ run: mvn --batch-mode verify \ No newline at end of file