Skip to content

Commit

Permalink
Split per-version tests into multiple files.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGBLP committed Jan 26, 2025
1 parent e9a71d0 commit 3289493
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests_paper_1_16_5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Paper 1.16.5

on:
- push
- pull_request

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 16
uses: actions/setup-java@v4
with:
java-version: '16'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest_1_16_5
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: lusk-nightly.jar
path: build/libs/*
32 changes: 32 additions & 0 deletions .github/workflows/tests_paper_1_17_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Paper 1.17.1

on:
- push
- pull_request

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest_1_17_1
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: lusk-nightly.jar
path: build/libs/*
32 changes: 32 additions & 0 deletions .github/workflows/tests_paper_1_18_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Paper 1.18.2

on:
- push
- pull_request

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest_1_18_2
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: lusk-nightly.jar
path: build/libs/*
32 changes: 32 additions & 0 deletions .github/workflows/tests_paper_1_19_4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Paper 1.19.4

on:
- push
- pull_request

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest_1_19_4
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: lusk-nightly.jar
path: build/libs/*
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: All Tests (1.16.5-1.21.4)
name: Paper 1.20.6

on:
- push
- pull_request


jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
Expand All @@ -24,7 +23,7 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest
run: ./gradlew clean luskTest_1_20_6
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/tests_paper_1_21_4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Paper 1.21.4

on:
- push
- pull_request

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript and run test scripts
run: ./gradlew clean luskTest_1_21_4
- name: Upload Nightly Build
uses: actions/upload-artifact@v4
if: success()
with:
name: lusk-nightly.jar
path: build/libs/*

0 comments on commit 3289493

Please sign in to comment.