Removen unnecessary comments #258
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: Test and Build | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
prerelease: | |
description: 'The release should be an experimental release' | |
default: 'NO' | |
required: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Set up JDK | |
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Test with Gradle | |
run: ./gradlew assemble check | |
- name: Generate and submit dependency graph | |
uses: gradle/actions/dependency-submission@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | |
if: github.ref == 'refs/heads/master' | |
env: | |
DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS: runtimeClasspath | |
githubRelease: | |
needs: test | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_USER: "gocd" | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
PRERELEASE: "${{ github.event.inputs.prerelease }}" | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Build and release with Gradle | |
run: ./gradlew githubRelease |