Browse Source

Remove references to Codecov token (#372)

pull/373/head
Matt Bishop 9 months ago committed by GitHub
parent
commit
8f5713e2a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 28
      .github/templates/workflow-templates/example-references/_test.yml

28
.github/templates/workflow-templates/example-references/_test.yml

@ -12,28 +12,9 @@ on: @@ -12,28 +12,9 @@ on:
required: true
jobs:
check-test-secrets:
name: Check for test secrets
runs-on: ubuntu-22.04
outputs:
available: ${{ steps.check-test-secrets.outputs.available }}
permissions:
contents: read
steps:
- name: Check
id: check-test-secrets
run: |
if [ "${{ secrets.CODECOV_TOKEN }}" != '' ]; then
echo "available=true" >> $GITHUB_OUTPUT;
else
echo "available=false" >> $GITHUB_OUTPUT;
fi
testing:
name: Test
runs-on: ubuntu-22.04
needs: check-test-secrets
permissions:
checks: write
contents: read
@ -64,12 +45,3 @@ jobs: @@ -64,12 +45,3 @@ jobs:
- name: Test
run: dotnet test ${{ inputs.project-path }}/${{ inputs.project-name }}.csproj --no-build --logger "trx;LogFileName=mothership-test-results.trx"
- name: Report test results
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
if: ${{ needs.check-test-secrets.outputs.available == 'true' && !cancelled() }}
with:
name: Test Results
path: "**/*-test-results.trx"
reporter: dotnet-trx
fail-on-error: true

Loading…
Cancel
Save