DRY ServiceEndpoints mappings #426
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
# Based on: | |
# - https://github.com/assertj/assertj/blob/f08f94806675ccaaa347e4cbc56cf02efa8cd3be/.github/workflows/release.yml#L1 | |
# - https://github.com/testcontainers/testcontainers-java/blob/de20484e53eb8d1f580b74ff9df31261b596ab5c/.github/workflows/release.yml#L1 | |
name: "Build and test" | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: # already run when a commit is pushed; no need to also run when it's tagged | |
- '**' | |
pull_request: | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: temurin | |
- uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: false # OR: ${{ github.ref != 'refs/heads/develop' }} | |
- name: Run Gradle Test | |
run: | | |
./gradlew spotlessCheck spotBugsMain test --profile --fail-fast | |
env: | |
ORG_GRADLE_PROJECT_ossrhUsername: ${{secrets.OSSRH_USERNAME}} | |
ORG_GRADLE_PROJECT_ossrhPassword: ${{secrets.OSSRH_TOKEN}} | |
ORG_GRADLE_PROJECT_signingKey: ${{secrets.GPG_PRIVATE_KEY}} | |
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.GPG_PASSWORD}} | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: reports | |
path: build/reports/ |