Skip to content

New translations en_us.json (Norwegian Bokmal) #3078

New translations en_us.json (Norwegian Bokmal)

New translations en_us.json (Norwegian Bokmal) #3078

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Clone repository
uses: actions/checkout@v4
- name: πŸ“₯ Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: πŸ“₯ Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/mc-') }}
- name: Disable Gradle daemon
run: |
mkdir -p ~/.gradle
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
- name: βš’οΈ Build
run: ./gradlew assemble || ./gradlew assemble
- name: Cache pre-commit
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: πŸ’‘ Lint
run: |
pipx install pre-commit
pre-commit run --show-diff-on-failure --color=always
- name: πŸ§ͺ Run tests
run: ./gradlew test validateMixinNames checkChangelog
- name: πŸ“₯ Download assets for game tests
run: ./gradlew downloadAssets || ./gradlew downloadAssets
- name: πŸ§ͺ Run integration tests
run: ./gradlew runGametest
- name: πŸ§ͺ Run client tests
run: ./gradlew runGametestClient # Not checkClient, as no point running rendering tests.
# These are a little flaky on GH actions: its useful to run them, but don't break the build.
continue-on-error: true
- name: πŸ§ͺ Parse test reports
run: ./tools/parse-reports.py
if: ${{ failure() }}
- name: πŸ“¦ Prepare Jars
run: |
# Find the main jar and append the git hash onto it.
mkdir -p jars
find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \;
- name: πŸ“€ Upload Jar
uses: actions/upload-artifact@v4
with:
name: CC-Tweaked
path: ./jars
- name: πŸ“€ Upload coverage
uses: codecov/codecov-action@v4
build-core:
strategy:
fail-fast: false
matrix:
include:
- name: Windows
uses: windows-latest
- name: macOS
uses: macos-latest
name: Test on ${{ matrix.name }}
runs-on: ${{ matrix.uses }}
steps:
- name: πŸ“₯ Clone repository
uses: actions/checkout@v4
- name: πŸ“₯ Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: πŸ“₯ Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/mc-') }}
- name: βš’οΈ Build
run: |
./gradlew --configure-on-demand :core:assemble
- name: πŸ§ͺ Run tests
run: |
./gradlew --configure-on-demand :core:test
- name: πŸ§ͺ Parse test reports
run: python3 ./tools/parse-reports.py
if: ${{ failure() }}