File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2222
2323jobs :
2424 release :
25+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
2526 permissions :
2627 contents : write
2728 pull-requests : write
3738 release-title : Adyen Java API Library
3839 pre-release : ${{ inputs.pre-release || false }}
3940 github-release : ${{ inputs.github-release || false }}
40- separator : .pre.beta
41+ separator : .pre.beta
Original file line number Diff line number Diff line change 55 branches :
66 - main
77 pull_request :
8- types : [opened, synchronize, reopened]
8+ types : [ opened, synchronize, reopened ]
99
1010jobs :
1111 SonarCloud-Build :
@@ -32,10 +32,15 @@ jobs:
3232 path : ~/.m2
3333 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3434 restore-keys : ${{ runner.os }}-m2
35+
36+ - name : Run Checkstyle
37+ run : mvn checkstyle:check
38+
3539 - name : Generate coverage report
3640 run : mvn test jacoco:report
3741
3842 - name : Run SonarCloud Analysis
43+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
3944 env :
4045 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4146 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments