fix(deps): bump org.junit:junit-bom from 5.10.2 to 5.10.3 #1252
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 CI | |
# This workflow builds and tests the Operator with Gradle. | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Set up JDK | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: 'gradle' | |
- name: Test with Gradle | |
uses: nick-fields/retry@v3 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
retry_wait_seconds: 10 | |
warning_on_retry: true | |
command: ./gradlew --continue check jacocoTestReport -x spotlessCheck | |
- name: Ensure distroless | |
run: > | |
./gradlew jibDockerBuild && | |
docker run --rm --entrypoint="echo" mongodb-operator:latest 'image is not distroless' && exit 1 || echo 'image is distroless' | |
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
if: always() | |
with: | |
name: java-ci-test-results | |
path: | | |
build/reports/ | |
build/test-results/**/*.xml | |
build/classes/ | |
retention-days: 7 | |
publish-test-results: | |
timeout-minutes: 60 | |
needs: build | |
runs-on: ubuntu-latest | |
# Don't run for forks and dependabot because of missing secrets | |
if: (success() || failure()) && !(github.event.pull_request && github.event.pull_request.head.repo.fork) && github.actor != 'dependabot[bot]' | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e | |
with: | |
files: artifacts/**/test-results/**/*.xml | |
# create release and publish the artifacts | |
semantic-release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
needs: build | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
with: | |
token: ${{ secrets.GH_RELEASE_TOKEN }} # can't use standard GITHUB_TOKEN | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 14 | |
# Do we really need to set up Java here? | |
- name: Set up JDK | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: 'gradle' | |
- name: Install Semantic release | |
run: | | |
sudo npm install -g \ | |
semantic-release@18.0.0 \ | |
@semantic-release/git@10.0.0 \ | |
@semantic-release/release-notes-generator@10.0.2 \ | |
@semantic-release/github@8.0.0 \ | |
@semantic-release/exec@6.0.3 | |
- name: Release and Publish | |
run: semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} # can't use standard GITHUB_TOKEN |