-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from SpineEventEngine/update-to-2.x
Update the library to Spine 2.x API
- Loading branch information
Showing
423 changed files
with
25,986 additions
and
10,870 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
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,37 @@ | ||
name: Build under Ubuntu | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build under Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
cache: gradle | ||
|
||
- name: Build project and run tests | ||
shell: bash | ||
run: ./gradlew build --stacktrace | ||
|
||
# See: https://github.com/marketplace/actions/junit-report-action | ||
- name: Publish Test Report | ||
uses: mikepenz/[email protected] | ||
if: always() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
require_tests: true # will fail workflow if test reports not found | ||
|
||
- name: Upload code coverage report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: false | ||
verbose: true |
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: Build under Windows | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
name: Build under Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
cache: gradle | ||
|
||
- name: Configure Pagefile | ||
uses: al-cheb/[email protected] | ||
|
||
- name: Build project and run tests | ||
shell: cmd | ||
# For the reason on `--no-daemon` see https://github.com/actions/cache/issues/454 | ||
run: gradlew.bat build --stacktrace --no-daemon | ||
|
||
# See: https://github.com/marketplace/actions/junit-report-action | ||
- name: Publish Test Report | ||
uses: mikepenz/[email protected] | ||
if: always() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
require_tests: true # will fail workflow if test reports not found |
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,25 @@ | ||
# Ensures that the license report files were modified in this PR. | ||
|
||
name: Ensure license reports updated | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: Ensure license reports updated | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Configure the checkout of all branches, so that it is possible to run the comparison. | ||
fetch-depth: 0 | ||
# Check out the `config` submodule to fetch the required script file. | ||
submodules: true | ||
|
||
- name: Check that `pom.xml` and `license-report.md` are modified | ||
shell: bash | ||
run: chmod +x ./config/scripts/ensure-reports-updated.sh && ./config/scripts/ensure-reports-updated.sh |
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,19 @@ | ||
name: Validate Gradle Wrapper | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
validation: | ||
name: Validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 |
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,29 @@ | ||
# Ensures that the current lib version is not yet published but executing the Gradle | ||
# `checkVersionIncrement` task. | ||
|
||
name: Check version increment | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: Check version increment | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
cache: gradle | ||
|
||
- name: Check version is not yet published | ||
shell: bash | ||
run: ./gradlew checkVersionIncrement --stacktrace |
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
cache: gradle | ||
|
||
- name: Decrypt CloudRepo credentials | ||
run: ./config/scripts/decrypt.sh "$CLOUDREPO_CREDENTIALS_KEY" ./.github/keys/cloudrepo.properties.gpg ./cloudrepo.properties | ||
env: | ||
CLOUDREPO_CREDENTIALS_KEY: ${{ secrets.CLOUDREPO_CREDENTIALS_KEY }} | ||
|
||
- name: Decrypt Git SSH credentials | ||
run: ./config/scripts/decrypt.sh "$GIT_CREDENTIALS_KEY" ./.github/keys/deploy_key_rsa.gpg ./deploy_key_rsa | ||
env: | ||
GIT_CREDENTIALS_KEY: ${{ secrets.GIT_CREDENTIALS_KEY }} | ||
|
||
# Make sure the SSH key is not "too visible". SSH agent will not accept it otherwise. | ||
- name: Set file system permissions | ||
run: chmod 400 ./deploy_key_rsa && chmod +x ./config/scripts/register-ssh-key.sh | ||
|
||
- name: Decrypt GCS credentials | ||
run: ./config/scripts/decrypt.sh "$GCS_CREDENTIALS_KEY" ./.github/keys/gcs-auth-key.json.gpg ./gcs-auth-key.json | ||
env: | ||
GCS_CREDENTIALS_KEY: ${{ secrets.GCS_CREDENTIALS_KEY }} | ||
|
||
- name: Decrypt GCAR credentials | ||
run: ./config/scripts/decrypt.sh "$MAVEN_PUBLISHER_KEY" ./.github/keys/maven-publisher.json.gpg ./maven-publisher.json | ||
env: | ||
MAVEN_PUBLISHER_KEY: ${{ secrets.MAVEN_PUBLISHER_KEY }} | ||
|
||
- name: Decrypt Git SSH credentials | ||
run: ./config/scripts/decrypt.sh "$GRADLE_PORTAL_CREDENTIALS_KEY" ./.github/keys/gradle-plugin-portal.secret.properties.gpg ./gradle-plugin-portal.secret.properties | ||
env: | ||
GRADLE_PORTAL_CREDENTIALS_KEY: ${{ secrets.GRADLE_PORTAL_CREDENTIALS_KEY }} | ||
|
||
- name: Append Gradle properties | ||
run: cat ./gradle-plugin-portal.secret.properties >> ./gradle.properties | ||
|
||
- name: Publish artifacts to Maven | ||
# Since we're in the `master` branch already, this means that tests of a PR passed. | ||
# So, no need to run the tests again when publishing. | ||
run: ./gradlew publish -x test --stacktrace | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FORMAL_GIT_HUB_PAGES_AUTHOR: [email protected] | ||
# https://docs.github.com/en/actions/reference/environment-variables | ||
REPO_SLUG: $GITHUB_REPOSITORY # e.g. SpineEventEngine/core-java | ||
GOOGLE_APPLICATION_CREDENTIALS: ./maven-publisher.json | ||
NPM_TOKEN: ${{ secrets.NPM_SECRET }} |
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.