Skip to content

Fix wrong budding block tag #3737

Fix wrong budding block tag

Fix wrong budding block tag #3737

Workflow file for this run

name: 'Build and Test'
on:
push:
# Only on branches, not tags/releases
branches:
- '**'
pull_request:
branches:
- '*'
# Cancel outdated builds for the same branch
concurrency:
group: ci-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
# Only run the pull-request build if the pull-request was opened from another repository,
# since we already run this workflow for the branch the pull request was made from.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
- run: git fetch origin --tags
shell: bash
- uses: ./.github/actions/gradle-setup
- name: Generate assets
run: ./gradlew runData
- name: Check that datagen ran
run: test -d ./src/generated/resources/.cache
- name: Make sure that generated files in the repo are up-to-date
run: |
# Print status for easier debugging
git status
if [ -n "$(git status --porcelain)" ]; then exit 1; fi
# Gradle Step for PRs
- name: Build PR with Gradle
run: ./gradlew build
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
if: github.event_name == 'pull_request'
# Gradle Step for normal branch pushes
- name: Build PR with Gradle
run: ./gradlew build
if: github.event_name != 'pull_request'
- name: Run Game Tests
run: ./gradlew runGametest
- name: Upload new Source Text Strings to Crowdin
run: ./gradlew uploadToCrowdin
env:
GIT_BRANCH: master
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
continue-on-error: true
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
# Always upload test results
- name: Merge Test Reports
if: success() || failure()
run: npx junit-report-merger junit.xml "**/TEST-*.xml"
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: junit.xml
- uses: actions/upload-artifact@v4
with:
name: dist
path: build/libs/