diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cb11435..ca33665 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,6 +12,10 @@ on: required: false type: string default: "*" + testresults: + description: "Optional testresults to upload" + required: false + type: string jobs: test: @@ -26,8 +30,16 @@ jobs: with: solana_version: ${{ steps.versions.outputs.solana_version }} anchor_version: ${{ steps.versions.outputs.anchor_version }} - node_version: 18 + node_version: 20 - uses: solana-developers/github-actions/run-tests@v0.2.4 with: program: ${{ inputs.program }} + + # Conditionally upload the file if filename is set + - name: Upload Test Results (if filename is set) + if: inputs.testresults != '' + uses: actions/upload-artifact@v4 + with: + name: test-results + path: ${{ inputs.testresults }}