Corep 5065 adjust checkout to be backward compatible with previous version of gateway #253
Workflow file for this run
This file contains hidden or 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: Java SDK Build and Run Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Create gradle.properties file | |
| run: | | |
| echo signing.keyId=${{secrets.GPG_KEY_ID}} > gradle.properties | |
| echo signing.password=${{secrets.GPG_KEY_PASSPHRASE}} >> gradle.properties | |
| echo signing.secretKeyRingFile=secring.gpg >> gradle.properties | |
| echo usr=${{ secrets.OSSRH_USERNAME }} >> gradle.properties | |
| echo pwd=${{ secrets.OSSRH_TOKEN }} >> gradle.properties | |
| - name: Run Tests | |
| run: ./gradlew test |