Skip to content

Merge pull request #869 from sigstore/conformance_14 #386

Merge pull request #869 from sigstore/conformance_14

Merge pull request #869 from sigstore/conformance_14 #386

Workflow file for this run

name: Examples
on:
push:
branches:
- '*'
pull_request:
branches:
- main
concurrency:
group: ${{ github.ref }}-examples
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
examples:
name: Build and run examples
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: 11
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
- name: run examples against released sigstore
working-directory: examples/hello-world
run: ./test.sh
- name: install sigstore java development jars into mavenLocal
run: ./gradlew publishToMavenLocal -Prelease -PskipSigning
- name: calculate development version
id: dev_version
run: |
set -Exeo pipefail
echo "version=$(grep "^version=" gradle.properties | cut -d'=' -f2)" >> $GITHUB_OUTPUT
- name: run examples against development version
working-directory: examples/hello-world
run: ./test.sh -Dsigstore.version=${{ steps.dev_version.outputs.version }}