Skip to content

chore(deps): update actions/checkout action to v4.2.0 #65

chore(deps): update actions/checkout action to v4.2.0

chore(deps): update actions/checkout action to v4.2.0 #65

Workflow file for this run

name: CI
on:
pull_request:
workflow_call:
permissions: {}
jobs:
build:
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 5
# actions/attest-build-provenance requires these permissions
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Output SHA
uses: hudsonm62/short-sha@b5ee0a4109da599fea68b00dcfe5812100ad8d42 # v1.1.0
id: short-sha
- name: Set plugin ver with SHA commit
run: |
sed -ri "s/^(versionSuffix=).*/\1sha-${SHA}/" gradle.properties || :
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- name: Set up JDK
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build
run: ./gradlew jar
- name: Generate artifact attestations
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
if: github.ref == 'refs/heads/main'
with:
subject-path: ./build/libs/*.jar
- name: Upload a jar
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: artifact
path: ./build/libs/
test:
name: Test
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up JDK
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Test
run: ./gradlew test