Skip to content

Commit

Permalink
Run tests after build
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Oct 28, 2024
1 parent 0e04763 commit d6096b3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
java-version: 17
distribution: temurin

- name: Build with Gradle
run: ./gradlew build
- name: Build
run: ./gradlew build -x test

- name: run test
- name: Test
run: ./gradlew test check

- name: sonar
- name: Sonar
run: ./gradlew jacocoTestCoverageVerification jacocoTestReport sonar
env:
SONAR_URL: ${{ secrets.SONAR_URL }}
Expand All @@ -29,4 +29,13 @@
name: Publish
run: ./gradlew build modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

- name: Store reports if any
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: |
**/build/reports/
**/build/test-results/

0 comments on commit d6096b3

Please sign in to comment.