Build and test #291
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] | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Maven Central | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: temurin | |
- name: Run Gradle Test | |
run: | | |
./gradlew spotlessCheck spotBugsMain test \ | |
--no-daemon -i | |
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}} |