Skip to content

chore: transition ci to reusable gradle job #2

chore: transition ci to reusable gradle job

chore: transition ci to reusable gradle job #2

Workflow file for this run

name: "Build"
on:
workflow_call:
inputs:
runner:
required: true
type: string
os:
required: true
type: string
label:
required: true
type: string
flags:
required: false
type: string
default: "--no-configuration-cache"
java:
required: false
type: string
default: 21
coverage:
required: false
type: boolean
default: true
provenance:
required: false
type: boolean
default: true
push:
required: false
type: boolean
default: false
experimental:
required: false
type: boolean
default: false
secrets:
SONAR_TOKEN:
required: true
CODECOV_TOKEN:
required: true
BUILDLESS_APIKEY:
required: true
env:
CI: "true"
GRADLE_OPTS: -Dorg.gradle.jvmargs="-XX:+UseParallelGC -Xmx3g -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=512M"
GRADLE_CACHE_LOCAL: true
GRADLE_CACHE_REMOTE: true
GRADLE_CACHE_PUSH: true
GRADLE_CACHE_USERNAME: apikey
GRADLE_CACHE_PASSWORD: ${{ secrets.BUILDLESS_APIKEY }}
CACHE_ENDPOINT: https://gradle.less.build/cache/generic/
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
TEST_EXCEPTIONS: true
permissions:
contents: read
jobs:
build:
uses: elide-dev/build-infra/.github/workflows/jvm.gradle.yml

Check failure on line 65 in .github/workflows/step.build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/step.build.yml

Invalid workflow file

invalid value workflow reference: no version specified
secrets: inherit
permissions:
contents: "write"
id-token: "write"
checks: "write"
pull-requests: "write"
with:
label: "Compile and Test (${{ inputs.label }})"
runner: ${{ inputs.runner }}
checks: true
coverage: ${{ inputs.coverage }}
provenance: ${{ inputs.provenance }}
jvm: ${{ inputs.java }}
action: "preMerge allTests apiCheck detekt"
flags: "-PVERSION=1.0-SNAPSHOT --scan --no-daemon --warning-mode=none --dependency-verification=lenient -Pci=true ${{ inputs.flags }}"