Skip to content

Commit

Permalink
Create skript-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cooffeeRequired authored Jan 25, 2025
1 parent 96212f2 commit 095fecf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/skript-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and test

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- 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/skript-test-action@feature/performance
with:
test_script_directory: src/test/scripts
extra_plugins_directory: extra-plugins/

0 comments on commit 095fecf

Please # to comment.