-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/patch' into item-tests
- Loading branch information
Showing
78 changed files
with
2,093 additions
and
956 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Archive documentation | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
archive-docs: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
needs: release-docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure workflow | ||
id: configuration | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/archives/${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: skript | ||
- name: Setup documentation environment | ||
uses: ./skript/.github/workflows/docs/setup-docs | ||
with: | ||
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
- name: Generate documentation | ||
uses: ./skript/.github/workflows/docs/generate-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
is_release: true | ||
generate_javadocs: true | ||
- name: Push archive documentation | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
git_name: Archive Docs Bot | ||
git_email: [email protected] | ||
git_commit_message: "Update ${{ steps.configuration.outputs.BRANCH_NAME }} archive docs" |
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
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,35 @@ | ||
name: Java 21 CI (MC 1.20.6+) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'dev/**' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build Skript and run test scripts | ||
run: ./gradlew clean skriptTestJava21 | ||
- name: Upload Nightly Build | ||
uses: actions/upload-artifact@v4 | ||
if: success() | ||
with: | ||
name: skript-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
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,31 @@ | ||
# Disabled as EasyMock 5.2.0 is required for Java 21 support | ||
# However, we are currently using 5.0.1 (see https://github.com/SkriptLang/Skript/pull/6204#discussion_r1405302009) | ||
name: JUnit (MC 1.20.6+) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'dev/**' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build Skript and run JUnit | ||
run: ./gradlew clean JUnitJava21 |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Release documentation | |
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-docs: | ||
|
@@ -33,6 +34,7 @@ jobs: | |
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
is_release: true | ||
generate_javadocs: true | ||
cleanup_pattern: "!(nightly|archives|templates)" | ||
- name: Push release documentation | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
|
@@ -41,40 +43,3 @@ jobs: | |
git_name: Release Docs Bot | ||
git_email: [email protected] | ||
git_commit_message: "Update release docs to ${{ steps.configuration.outputs.BRANCH_NAME }}" | ||
|
||
archive-docs: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
needs: release-docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure workflow | ||
id: configuration | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/archives/${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: skript | ||
- name: Setup documentation environment | ||
uses: ./skript/.github/workflows/docs/setup-docs | ||
with: | ||
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
- name: Generate documentation | ||
uses: ./skript/.github/workflows/docs/generate-docs | ||
with: | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
is_release: true | ||
- name: Push archive documentation | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
git_name: Archive Docs Bot | ||
git_email: [email protected] | ||
git_commit_message: "Update ${{ steps.configuration.outputs.BRANCH_NAME }} archive docs" |
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.