Skip to content

fix(deps): update testcontainers-java monorepo to v1.20.4 #190

fix(deps): update testcontainers-java monorepo to v1.20.4

fix(deps): update testcontainers-java monorepo to v1.20.4 #190

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
env:
GRADLE_OPTS: "-Dorg.gradle.workers.max=2 -Dorg.gradle.console=plain"
jobs:
# Verifies all tests pass
verify:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
cache: gradle
- uses: taiki-e/install-action@v2
with:
tool: just@1
- run: just verify
- run: ./gradlew publishPlugins -Pversion=0.0.0 --validate-only
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
# Prepare a release PR or release
release:
needs: verify
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
released: ${{ steps.release.outputs.release_created }}
steps:
- id: release
uses: googleapis/release-please-action@v4
with:
release-type: simple
# Publish the artifacts (only if `verify` passed, and `release` created release)
publish:
needs: [verify, release]
if: ${{ needs.verify.result == 'success' && needs.release.outputs.released }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
cache: gradle
- uses: taiki-e/install-action@v2
with:
tool: just@1
- run: just publish
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}