Skip to content

Commit

Permalink
feat: add pr compilation check process (apache#449)
Browse files Browse the repository at this point in the history
Co-authored-by: gaoxihui <[email protected]>
  • Loading branch information
gaoxh and gaoxihui authored Sep 9, 2024
1 parent e8327fb commit 903a28f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-pr-commit.yml
Original file line number Diff line number Diff line change
@@ -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> <snapshots /> <id>ossrh</id> <name>ossrh-snapshot</name> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </pluginRepository> </pluginRepositories> <id>artifactory</id> </profile> </profiles> <activeProfiles> <activeProfile>artifactory</activeProfile> </activeProfiles> <servers> <server> <id>github</id> <username>${env.GITHUB_ACTOR}</username> <password>${env.GITHUB_TOKEN}</password> </server> </servers> <mirrors/> <proxies/></settings>' > ~/.m2/settings.xml

- name: Build with Maven
run: mvn -B compile --file pom.xml

0 comments on commit 903a28f

Please sign in to comment.