-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
1,484 additions
and
735 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
name: Build and test | ||
name: Tests | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
|
@@ -12,27 +13,138 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 17 | ||
java-version: 21 | ||
distribution: 'adopt' | ||
- name: Install Gradle | ||
uses: sdkman/sdkman-action@main | ||
with: | ||
candidate: gradle | ||
version: 8.6 | ||
version: 8.9 | ||
- name: Generate Gradle wrapper | ||
run: gradle wrapper | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew shadowjar | ||
run: ./gradlew build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Lusk.jar | ||
path: build/libs/*.jar | ||
test: | ||
test_build: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 16 | ||
distribution: 'adopt' | ||
- name: Install Gradle | ||
uses: sdkman/sdkman-action@main | ||
with: | ||
candidate: gradle | ||
version: 8.9 | ||
- name: Generate Gradle wrapper | ||
run: gradle wrapper | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew testBuild | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Lusk_back.jar | ||
path: build/libs/*.jar | ||
test_dev_feature: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/[email protected] | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: dev/feature | ||
extra_plugins_directory: extra-plugins/ | ||
test_2_10_0: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/[email protected] | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: 2.10.0 | ||
extra_plugins_directory: extra-plugins/ | ||
test_2_9_5: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/[email protected] | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: 2.9.5 | ||
extra_plugins_directory: extra-plugins/ | ||
test_2_8_7: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/[email protected] | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: 2.8.7 | ||
extra_plugins_directory: extra-plugins/ | ||
test_2_7_3: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/[email protected] | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: 2.7.3 | ||
extra_plugins_directory: extra-plugins/ | ||
test_2_6_4: | ||
runs-on: ubuntu-latest | ||
needs: [test_build] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
@@ -42,8 +154,8 @@ jobs: | |
path: extra-plugins/ | ||
merge-multiple: true | ||
- name: Run tests | ||
uses: SkriptLang/skript-test-action@v1.1 | ||
uses: SkriptLang/skript-test-action@v1.2 | ||
with: | ||
test_script_directory: src/test/scripts | ||
skript_repo_ref: dev/patch | ||
skript_repo_ref: 2.6.4 | ||
extra_plugins_directory: extra-plugins/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Java 17 Tests #CI (MC 1.19.4-1.20.4) | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
|
||
jobs: | ||
build: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Install Gradle | ||
uses: sdkman/sdkman-action@main | ||
with: | ||
candidate: gradle | ||
version: 8.9 | ||
- name: Generate Gradle wrapper | ||
run: gradle wrapper | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build Skript and run test scripts | ||
run: ./gradlew clean skriptTestJava17 | ||
- name: Upload Nightly Build | ||
uses: actions/upload-artifact@v4 | ||
if: success() | ||
with: | ||
name: lusk-nightly | ||
path: build/libs/* |
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
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
Oops, something went wrong.