Bump svelte in /front in the npm_and_yarn group across 1 directory #333
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: [pull_request, push, workflow_dispatch] | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| java: [21] | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v4 | |
| - name: validate gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: setup jdk ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: "microsoft" | |
| - name: make gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: setup node | |
| uses: actions/setup-node@v6 | |
| - name: build | |
| run: ./gradlew build | |
| - name: capture build artifacts | |
| if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from the latest java | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Artifacts | |
| path: | | |
| fabric/build/libs/ | |
| server/build/libs/ | |
| - name: capture tests reports | |
| if: ${{ always() && runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from the latest java | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Test reports | |
| path: | | |
| server/build/test-results/ | |
| server/build/reports/ | |
| - name: github actions junit report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() | |
| with: | |
| report_paths: 'server/build/test-results/test/TEST-*.xml' | |
| comment: true | |
| - name: generate db file | |
| run: ./gradlew generateDb | |
| - name: capture db file | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: database | |
| path: server/build/db.mv.db |