Add accepts change condition #165
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
name: Build and test | |
on: | |
push: | |
branches: | |
- 2.x | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- 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/[email protected] | |
with: | |
test_script_directory: src/test/scripts | |
skript_repo_ref: dev/patch | |
extra_plugins_directory: extra-plugins/ |