Merge pull request #942 from sigstore/renovate/com.diffplug.spotless-… #490
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: TUF Conformance Tests | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
# TODO: add cron | |
jobs: | |
conformance: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
java-version: [11, 17] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up JDK 17 | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0 | |
- name: Build tuf cli | |
run: ./gradlew :tuf-cli:build | |
- name: Unpack tuf distribution | |
run: tar -xvf ${{ github.workspace }}/tuf-cli/build/distributions/tuf-cli-*.tar --strip-components 1 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
- uses: theupdateframework/tuf-conformance@9bfc222a371e30ad5511eb17449f68f855fb9d8f # v2.3.0 | |
with: | |
entrypoint: ${{ github.workspace }}/bin/tuf-cli | |
artifact-name: test repositories for tuf-cli java ${{ matrix.java-version }} |