diff --git a/.github/workflows/publish-tck.yml b/.github/workflows/publish-tck.yml new file mode 100644 index 00000000..e754104c --- /dev/null +++ b/.github/workflows/publish-tck.yml @@ -0,0 +1,41 @@ +name: Publish TCK + +on: + workflow_call: + inputs: + version: + required: true + description: Tag version to perform release + type: string + +jobs: + publish-tck: + name: Publish TCK + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 11, 17, 21 ] + + steps: + - uses: actions/checkout@v4 + name: checkout ${{inputs.version}} + with: + ref: ${{inputs.version}} + + - uses: actions/setup-java@v4 + name: set up jdk ${{matrix.java}} + with: + distribution: 'temurin' + java-version: ${{matrix.java}} + cache: 'maven' + cache-dependency-path: '**/pom.xml' + + - name: generate tck report for jdk ${{matrix.java}} + env: + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + ZIP_NAME: smallrye-opentelemetry-${{inputs.version}}-tck-results-java-${{matrix.java}}.zip + run: | + mvn -B formatter:validate verify --file pom.xml + cd testsuite/tck/target + zip -r $ZIP_NAME surefire-reports-logs/ surefire-reports-metrics/ surefire-reports-metrics-jvm/ surefire-reports-tracing/ + gh release upload ${{inputs.version}} $ZIP_NAME diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a2dbd0a..cbc62a1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,18 @@ jobs: uses: smallrye/.github/.github/workflows/prepare-release.yml@main secrets: inherit - perform-release: - name: Perform Release + publish-tck: + name: Publish TCK Report needs: prepare-release - uses: smallrye/.github/.github/workflows/perform-release.yml@main + uses: ./.github/workflows/publish-tck.yml secrets: inherit with: version: ${{needs.prepare-release.outputs.release-version}} + +# perform-release: +# name: Perform Release +# needs: prepare-release +# uses: smallrye/.github/.github/workflows/perform-release.yml@main +# secrets: inherit +# with: +# version: ${{needs.prepare-release.outputs.release-version}}