From 903a28f9511f705d2227f8970da8e981af3bedaa Mon Sep 17 00:00:00 2001 From: gaoxh <32359336+gaoxh@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:20:22 +0800 Subject: [PATCH] feat: add pr compilation check process (#449) Co-authored-by: gaoxihui --- .github/workflows/build-pr-commit.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build-pr-commit.yml diff --git a/.github/workflows/build-pr-commit.yml b/.github/workflows/build-pr-commit.yml new file mode 100644 index 000000000..1e5d96f85 --- /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/setup-maven-action@v1.7.0 + with: + java-version: 21 + + - run: echo ' false ossrh ossrh-snapshot https://s01.oss.sonatype.org/content/repositories/snapshots ossrh ossrh-snapshot https://s01.oss.sonatype.org/content/repositories/snapshots artifactory artifactory github ${env.GITHUB_ACTOR} ${env.GITHUB_TOKEN} ' > ~/.m2/settings.xml + + - name: Build with Maven + run: mvn -B compile --file pom.xml \ No newline at end of file