File tree 2 files changed +32
-2
lines changed
2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Publish
2
- on : [ push, pull_request, workflow_dispatch]
2
+ on : push
3
3
jobs :
4
4
build :
5
5
runs-on : ubuntu-latest
21
21
- name : Test
22
22
run : ./gradlew test check
23
23
24
- - name : Sonar
24
+ - if : github.repository == 'FabricCompatibilityLayers/Mod-Remapping-API'
25
+ name : Sonar
25
26
run : ./gradlew jacocoTestCoverageVerification jacocoTestReport sonar
26
27
env :
27
28
SONAR_URL : ${{ secrets.SONAR_URL }}
Original file line number Diff line number Diff line change
1
+ name : Build and Publish
2
+ on : [pull_request]
3
+ jobs :
4
+ build :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v4
8
+ - name : Validate Gradle Wrapper
9
+ uses : gradle/wrapper-validation-action@v3
10
+ - name : Set up JDK 17
11
+ uses : actions/setup-java@v4
12
+ with :
13
+ java-version : 17
14
+ distribution : temurin
15
+
16
+ - name : Build
17
+ run : ./gradlew build -x test
18
+
19
+ - name : Test
20
+ run : ./gradlew test check
21
+
22
+ - name : Store reports if any
23
+ if : failure()
24
+ uses : actions/upload-artifact@v4
25
+ with :
26
+ name : reports
27
+ path : |
28
+ **/build/reports/
29
+ **/build/test-results/
You can’t perform that action at this time.
0 commit comments