Update actions/setup-java digest to 8df1039 #132
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
macOS: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
publish_artifacts: | |
name: Publish Snapshot Artifacts | |
needs: linux | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.repository == 'ota4j-team/opentest4j' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main') | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Publish | |
uses: ./.github/actions/run-gradle | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | |
with: | |
arguments: publish -x check | |
update_documentation: | |
name: Update documentation | |
needs: linux | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.repository == 'ota4j-team/opentest4j' && github.ref == 'refs/heads/main' | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Publish | |
uses: ./.github/actions/run-gradle | |
env: | |
GRGIT_USER: ${{ secrets.GH_TOKEN }} | |
with: | |
arguments: gitPublishPush |