You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by to...@apache.org on 2021/03/17 19:21:54 UTC
[db-jdo] branch master updated: JDO-791: Introduce basic GitHub
action for automated TCK builds
This is an automated email from the ASF dual-hosted git repository.
tobous pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
The following commit(s) were added to refs/heads/master by this push:
new efc23bb JDO-791: Introduce basic GitHub action for automated TCK builds
efc23bb is described below
commit efc23bba02624a952b4a35059506a63ef09f631f
Author: Tobias Bouschen <to...@googlemail.com>
AuthorDate: Wed Mar 10 21:58:51 2021 +0100
JDO-791: Introduce basic GitHub action for automated TCK builds
Introduces a GitHub action automatically building JDO and running the
TCK for each pull request and each push to master. This ensures that
potential issues introduced by contributions or due to merge
complications on master will be detected and reported automatically.
The action uses the newly introduced flag to skip JNDI tests to avoid
the dependency on external, closed-source libraries.
---
.github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..c53b494
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,39 @@
+# Builds JDO and runs the TCK
+#
+# This workflow is run for every submitted pull request and every push on master
+name: Build JDO & Run TCK
+
+on:
+ push:
+ branches:
+ - 'master'
+ pull_request:
+
+jobs:
+ build:
+ name: Build JDO & Run TCK
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ # test against Java 8 and 11
+ java: [ 8, 11 ]
+ defaults:
+ run:
+ shell: bash
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 1
+
+ - name: Setup java
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+
+ # Builds JDO & Runs the TCK
+ # Skips JNDI-related tests as they require external libraries
+ - name: Build JDO & Run TCK
+ run: |
+ mvn -Djdo.tck.skipJndi clean install