Skip to content

Update publish.yml

Update publish.yml #2

Workflow file for this run

name: Test PR

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 12, Col: 14): Unrecognized function: 'lower'. Located at position 1 within expression: lower(github.repository)
on:
workflow_dispatch:
pull_request:
jobs:
GameTest:
strategy:
matrix:
GameTestConfig: [ default, testAE ]
permissions:
contents: write
runs-on: ghcr.io/${{ lower(github.repository) }}:1.20.1-6.0.0-forge
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.11.1'
- name: Test Server with ${{ matrix.GameTestConfig }}
run: gradle runGameTestServer -PGameTestConfig=${{ matrix.GameTestConfig }} -Dforge.enabledGameTestNamespaces=smartercontraptionstorage
- uses: actions/upload-artifact@v4
with:
name: Test Artifact of ${{ matrix.GameTestConfig }}
include-hidden-files: true
path: |
**/logs/
**/crash-reports/
retention-days: 7
if: always()