Merge pull request #259 from railcraft-reborn/fix-258 #650
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: Railcraft CI | |
on: | |
push: | |
branches: | |
- 1.20.x | |
pull_request: | |
branches: | |
- 1.20.x | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Validate wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: wrapper | |
cache-read-only: false | |
- name: Build | |
run: ./gradlew build | |
- name: Test | |
run: ./gradlew runGameTestServer | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Railcraft-1.20.x-GitHub | |
path: build/libs |