Skip to content

Commit

Permalink
Publish TCK report job
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Sep 25, 2024
1 parent d7c7bbf commit c079e1d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-tck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish TCK

on:
workflow_call:

jobs:
publish-tck:
name: Publish TCK
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17, 21 ]

steps:
- uses: radcortez/project-metadata-action@main
name: retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'

- uses: actions/checkout@v4
name: checkout ${{steps.metadata.outputs.current-version}}
with:
ref: ${{steps.metadata.outputs.current-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-${{steps.metadata.outputs.current-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 ${{steps.metadata.outputs.current-version}} smallrye-opentelemetry-tck-results.zip
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:
uses: smallrye/.github/.github/workflows/prepare-release.yml@main
secrets: inherit

perform-release:
name: Perform Release
needs: prepare-release
uses: smallrye/.github/.github/workflows/perform-release.yml@main
publish-tck:
name: Publish TCK Report
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}}

0 comments on commit c079e1d

Please sign in to comment.