Skip to content

Commit

Permalink
Disable Sonar analyze for Pull Request
Browse files Browse the repository at this point in the history
  • Loading branch information
arey committed Jul 10, 2024
1 parent b1cd76a commit be62933
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: Java CI on main branch

on:
push:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/maven-build-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Java CI for Pull Request

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17', '21' ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java}}
distribution: 'adopt'
cache: maven
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -B verify

0 comments on commit be62933

Please sign in to comment.