Skip to content

[ANCHOR-857] JDK-17 upgrade and javax to jakarta package migration #964

[ANCHOR-857] JDK-17 upgrade and javax to jakarta package migration

[ANCHOR-857] JDK-17 upgrade and javax to jakarta package migration #964

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Basic Tests
on:
pull_request:
workflow_call: # Allows this workflow to be called from another workflow
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Check code formatting
run: ./gradlew spotlessCheck || echo "❌ Your code is not properly formatted. You can run './gradlew spotlessApply' to format it. 👀"
- name: Clean, Build and Test
run: ./gradlew clean build
- name: Print Test Results
if: success() || failure()
run: |
echo "\n\n*** API Schema test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/api-schema/build/reports/tests/test/index.html
echo "\n\n*** SEP test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/core/build/reports/tests/test/index.html
echo "\n\n*** Platform test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/platform/build/reports/tests/test/index.html
echo "\n\n*** Integration tests report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/integration-tests/build/reports/tests/test/index.html
echo "\n\n*** Anchor reference server test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/anchor-reference-server/build/reports/tests/test/index.html
complete:
if: always()
needs: [build_and_test]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1