Skip to content

Commit

Permalink
Merge pull request #159 from SpineEventEngine/update-to-2.x
Browse files Browse the repository at this point in the history
Update the library to Spine 2.x API
  • Loading branch information
armiol authored Dec 22, 2023
2 parents 1ff06a1 + cf3b603 commit b735f0e
Show file tree
Hide file tree
Showing 423 changed files with 25,986 additions and 10,870 deletions.
18 changes: 15 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,23 @@

coverage:
ignore:
- generated/*
- examples/*
- test/*
- "**/generated/**/*"
- "**/examples/**/*"
- "**/test/**/*"
status:
# https://docs.codecov.com/docs/github-checks#yaml-configuration-for-github-checks-and-codecov
patch: false
# https://docs.codecov.com/docs/commit-status
project:
default:
target: auto
threshold: 0.05%
base: auto
paths:
- "src"
if_ci_failed: error
informational: false
only_pulls: true

comment:
layout: "header, diff, changes, uncovered"
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@ pull text eol=lf
*.scpt binary
*.scssc binary

# Encoded files
# Encrypted files
*.enc binary
*.gpg binary
*.weis binary
Binary file added .github/keys/cloudrepo.properties.gpg
Binary file not shown.
Binary file added .github/keys/deploy_key_rsa.gpg
Binary file not shown.
Binary file added .github/keys/firebase-sa.json.gpg
Binary file not shown.
Binary file added .github/keys/gcs-auth-key.json.gpg
Binary file not shown.
2 changes: 2 additions & 0 deletions .github/keys/gradle-plugin-portal.secret.properties.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
� 2�.y�:���ҢF����`�J�1$�����9�������� D~�z�e��!yu��GBU��2�K�0�!�� ����q =���˂p�������@z����e�qB�>�R#�qj�?�1��m굘U��^�2��*���k��J� 3�w�q84}.
�2��M<�
Expand Down
Binary file added .github/keys/maven-publisher.json.gpg
Binary file not shown.
37 changes: 37 additions & 0 deletions .github/workflows/build-on-ubuntu.yml
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
35 changes: 35 additions & 0 deletions .github/workflows/build-on-windows.yml
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
25 changes: 25 additions & 0 deletions .github/workflows/ensure-reports-updated.yml
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
19 changes: 19 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
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
29 changes: 29 additions & 0 deletions .github/workflows/increment-guard.yml
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
26 changes: 0 additions & 26 deletions .github/workflows/increment_guard.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/publish.yml
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 }}
25 changes: 0 additions & 25 deletions .github/workflows/win.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021, TeamDev. All rights reserved.
# Copyright 2023, TeamDev. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
24 changes: 14 additions & 10 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/dictionaries/common.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b735f0e

Please sign in to comment.