Skip to content

Framework updates #3515

Framework updates

Framework updates #3515

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 14, Col: 9): Unexpected symbol: '"pull_request"'. Located at position 22 within expression: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" .github/workflows/build.yml (Line: 25, Col: 9): Unexpected symbol: '"pull_request"'. Located at position 22 within expression: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs"
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