Framework updates #3515
Workflow file for this run
This file contains 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: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
concurrency: | ||
group: build-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
docs: | ||
if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" | ||
Check failure on line 14 in .github/workflows/build.yml GitHub Actions / BuildInvalid workflow file
|
||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
- run: npm i | ||
- run: npm run build | ||
mod: | ||
if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: "microsoft" | ||
java-version: "21" | ||
- run: ./gradlew build --stacktrace --warning-mode fail | ||
working-directory: ./reference | ||
- run: ./gradlew runDatagen --stacktrace --warning-mode fail | ||
working-directory: ./reference | ||
- name: Check resources | ||
run: | | ||
git status | ||
if [ -n "$(git status --porcelain)" ]; then exit 1; fi | ||
- uses: Juuxel/publish-checkstyle-report@v1 | ||
if: ${{ failure() }} | ||
with: | ||
reports: | | ||
reference/**/build/reports/checkstyle/*.xml | ||
cleanup: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- run: exit 0 |