-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test job * Add ExprJavaCall.sk test * Modify test job * Add build dependency to test task * Fix test script error * Let's see how enabling vanilla tests goes * Only run push action on 2.x branch * Fix skript-reflect breaking the vanilla "fire visual effect comparison" test
- Loading branch information
1 parent
259b7f2
commit 7c3cbfd
Showing
3 changed files
with
40 additions
and
10 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,17 +1,17 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
name: Build and test | ||
|
||
name: Java CI with Gradle | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- 2.x | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -20,6 +20,24 @@ jobs: | |
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- uses: actions/upload-artifact@master | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
path: build/libs/*.jar | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: [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.2 | ||
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
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,2 @@ | ||
test "ExprJavaCall": | ||
assert "123".length() is 3 with "incorrect String##length return" |