Skip to content

Edit Token Permissions for Release Pipeline #89

Edit Token Permissions for Release Pipeline

Edit Token Permissions for Release Pipeline #89

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v2
# .NET Tests
- name: Build .NET
uses: ./.github/actions/dotnet
with:
version: "1.0.0-test"
- name: Test .NET Solution
working-directory: src
shell: bash
run: dotnet test -c Release /p:CollectCoverage=true -m:1
- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.0.2
with:
filename: src/coverage.cobertura.xml
badge: true
format: 'markdown'
output: 'both'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
with:
recreate: true
path: code-coverage-results.md