Skip to content

Commit

Permalink
chore: additional ci cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Jan 7, 2024
1 parent b9291b4 commit f67efc2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/checks.codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ env:

jobs:
analyze:
name: Analyze
name: "CodeQL"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["java"]

steps:
- name: "Setup: Harden Runner"
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand Down Expand Up @@ -71,10 +66,10 @@ jobs:
- name: "Setup: Initialize CodeQL"
uses: github/codeql-action/init@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
with:
languages: ${{ matrix.language }}
languages: java
- name: "CodeQL: Autobuild"
uses: github/codeql-action/autobuild@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
- name: "CodeQL: Analysis"
uses: github/codeql-action/analyze@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
with:
category: "/language:${{matrix.language}}"
category: "/language:java"
1 change: 1 addition & 0 deletions .github/workflows/checks.dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:

jobs:
dependency-review:
name: "Dependency Review"
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/gradle.earthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ name: "Gradle (Earthly)"
default: true
type: boolean
description: "Cache push"

secrets:
BUILDLESS_APIKEY:
required: false
required: true
description: "API key for build caching"

workflow_dispatch:
Expand Down Expand Up @@ -79,7 +78,7 @@ env:

jobs:
build:
name: Build and Test (Java ${{ inputs.java }})
name: Build/Test (Earthly, Java ${{ inputs.java }})
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
steps:
- name: "Setup: Harden Runner"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/maven.earthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ name: "Maven (Earthly)"
default: true
type: boolean
description: "Cache push"

secrets:
BUILDLESS_APIKEY:
required: false
required: true
description: "API key for build caching"

workflow_dispatch:
Expand Down Expand Up @@ -79,7 +78,7 @@ env:

jobs:
build:
name: Build and Test (Java ${{ inputs.java }})
name: Build/Test (Earthly, Java ${{ inputs.java }})
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
steps:
- name: "Setup: Harden Runner"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

## Gradle: Earthly
build-earthly-gradle:
name: "Build (Gradle)"
name: "Gradle (Earthly, Java ${{ matrix.java }})"
uses: ./.github/workflows/gradle.earthly.yml
secrets: inherit
strategy:
Expand All @@ -32,7 +32,7 @@ jobs:

## Gradle: Earthly
build-earthly-maven:
name: "Build (Maven)"
name: "Maven (Earthly, Java ${{ matrix.java }})"
uses: ./.github/workflows/maven.earthly.yml
secrets: inherit
strategy:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/on.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,30 @@ jobs:

## Gradle: Earthly
build-earthly-gradle:
name: "Build (Earthly)"
name: "Gradle (Earthly, Java ${{ matrix.java }})"
uses: ./.github/workflows/gradle.earthly.yml
secrets: inherit
strategy:
matrix:
java: [17, 21]
secrets: inherit
permissions:
contents: read
packages: write
with:
runner: ubuntu-latest
java: ${{ matrix.java }}

## Gradle: Earthly
build-earthly-maven:
name: "Maven (Earthly, Java ${{ matrix.java }})"
uses: ./.github/workflows/maven.earthly.yml
secrets: inherit
strategy:
matrix:
java: [17, 21]
secrets: inherit
permissions:
contents: read
packages: write
with:
runner: ubuntu-latest
java: ${{ matrix.java }}
Expand Down

0 comments on commit f67efc2

Please sign in to comment.