This is an automated email from the ASF dual-hosted git repository.
mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata2.git
The following commit(s) were added to refs/heads/master by this push:
new b08d2569 Setup GH action for Java build
b08d2569 is described below
commit b08d2569d4e226102fc5e6a27b871b2b9769cacc
Author: Michael Bolz <[email protected]>
AuthorDate: Sun Oct 23 17:21:32 2022 +0200
Setup GH action for Java build
---
.github/workflows/maven.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 00000000..7c4c78d9
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,26 @@
+# This workflow will build a Java project with Maven, and cache/restore any
dependencies to improve the workflow execution time
+# For more information see:
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up JDK 8 (Corretto)
+ uses: actions/setup-java@v3
+ with:
+ java-version: '8'
+ distribution: 'corretto'
+ cache: maven
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml