Skip to content

Commit 095fecf

Browse files
Create skript-test.yml
1 parent 96212f2 commit 095fecf

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/skript-test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v2
13+
- name: Set up JDK 21
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 21
17+
- name: Grant execute permission for gradlew
18+
run: chmod +x gradlew
19+
- name: Build with Gradle
20+
run: ./gradlew build
21+
- name: Upload artifacts
22+
uses: actions/upload-artifact@master
23+
with:
24+
path: build/libs/*.jar
25+
test:
26+
runs-on: ubuntu-latest
27+
needs: [build]
28+
steps:
29+
- name: Checkout repo
30+
uses: actions/checkout@v2
31+
- name: Download artifacts
32+
uses: actions/download-artifact@v4
33+
with:
34+
path: extra-plugins/
35+
merge-multiple: true
36+
- name: Run tests
37+
uses: SkriptLang/skript-test-action@feature/performance
38+
with:
39+
test_script_directory: src/test/scripts
40+
extra_plugins_directory: extra-plugins/

0 commit comments

Comments
 (0)