Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGlitch76 committed Oct 19, 2024
1 parent 743b2b7 commit 209e3fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- run: git config --global user.name "Nobody"
- run: ./gradlew applyPatches
- run: ./gradlew build publish -x check -x test --stacktrace
working-directory: quilt-loom
working-directory: patched-quilt-loom
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew applyPatches
- run: ./gradlew build check -x test --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
build_windows:
runs-on: windows-2022
steps:
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew applyPatches
- run: ./gradlew build check -x test --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
# This job is used to feed the test matrix of next job to allow the tests to run in parallel
prepare_test_matrix:
# Wait to ensure it builds before going running tests
Expand All @@ -58,9 +58,9 @@ jobs:
- run: ./gradlew applyPatches

- run: ./gradlew writeActionsTestMatrix --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
- id: set-matrix
run: echo "matrix=$(cat quilt-loom/build/test_matrix.json)" >> $GITHUB_OUTPUT
run: echo "matrix=$(cat patched-quilt-loom/build/test_matrix.json)" >> $GITHUB_OUTPUT

outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- run: ./gradlew applyPatches

- run: ./gradlew printActionsTestName --name="${{ matrix.test }}" test --tests ${{ matrix.test }} --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
env:
TEST_WARNING_MODE: fail
id: test
Expand All @@ -99,7 +99,7 @@ jobs:
if: ${{ failure() }}
with:
name: ${{ matrix.test }} (${{ matrix.java }}) Results
path: quilt-loom/build/reports/
path: patched-quilt-loom/build/reports/
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
distribution: 'temurin'
- run: ./gradlew applyPatches
- run: ./gradlew printActionsTestName --name="${{ matrix.test }}" test --tests ${{ matrix.test }} --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
env:
TEST_WARNING_MODE: fail
id: test
Expand All @@ -139,7 +139,7 @@ jobs:
if: ${{ failure() }}
with:
name: ${{ matrix.test }} (${{ matrix.java }}) Results (Windows)
path: quilt-loom/build/reports/
path: patched-quilt-loom/build/reports/
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
Expand Down Expand Up @@ -170,9 +170,9 @@ jobs:
distribution: 'temurin'
- run: ./gradlew applyPatches
- run: ./gradlew test --tests *ReproducibleBuildTest --stacktrace --warning-mode fail
working-directory: quilt-loom
working-directory: patched-quilt-loom
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: Reproducible Build ${{ matrix.os }} (${{ matrix.java }}) Results
path: quilt-loom/build/reports/
path: patched-quilt-loom/build/reports/

0 comments on commit 209e3fc

Please sign in to comment.