This is an automated email from the ASF dual-hosted git repository.
zhangxiaowei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozhera.git
The following commit(s) were added to refs/heads/master by this push:
new 903a28f9 feat: add pr compilation check process (#449)
903a28f9 is described below
commit 903a28f9511f705d2227f8970da8e981af3bedaa
Author: gaoxh <[email protected]>
AuthorDate: Mon Sep 9 11:20:22 2024 +0800
feat: add pr compilation check process (#449)
Co-authored-by: gaoxihui <[email protected]>
---
.github/workflows/build-pr-commit.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/.github/workflows/build-pr-commit.yml
b/.github/workflows/build-pr-commit.yml
new file mode 100644
index 00000000..1e5d96f8
--- /dev/null
+++ b/.github/workflows/build-pr-commit.yml
@@ -0,0 +1,25 @@
+name: pr-commit-build
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+ workflow_dispatch:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Setup Maven Action
+ uses: s4u/[email protected]
+ with:
+ java-version: 21
+
+ - run: echo '<settings> <interactiveMode>false</interactiveMode>
<profiles> <profile> <repositories>
<repository> <snapshots /> <id>ossrh</id>
<name>ossrh-snapshot</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</repository> </repositories> <pluginRepositories>
<pluginRepository> [...]
+
+ - name: Build with Maven
+ run: mvn -B compile --file pom.xml
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]