mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-19 16:30:14 +02:00
workflow fixes
This commit is contained in:
@@ -1,15 +1,18 @@
|
|||||||
# Assign PR to Author
|
# Assign PR to Author
|
||||||
# https://github.com/samspills/assign-pr-to-author
|
# https://github.com/samspills/assign-pr-to-author
|
||||||
|
|
||||||
name: Auto Assign PR
|
# Disabled due to #14 HttpError: Resource not accessible by integration:
|
||||||
on: [pull_request]
|
# https://github.com/samspills/assign-pr-to-author/issues/14
|
||||||
|
|
||||||
jobs:
|
#name: Auto Assign PR
|
||||||
assignAuthor:
|
#on: [pull_request]
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
#jobs:
|
||||||
- name: Auto Assign PR
|
# assignAuthor:
|
||||||
uses: samspills/assign-pr-to-author@v1.0
|
# runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
# steps:
|
||||||
with:
|
# - name: Auto Assign PR
|
||||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
# uses: samspills/assign-pr-to-author@v1.0
|
||||||
|
# if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
||||||
|
# with:
|
||||||
|
# repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: CI Build
|
name: CI Build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
- name: Setup .NET
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup .Net
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.x
|
dotnet-version: 5.0.x
|
||||||
@@ -23,11 +25,5 @@ jobs:
|
|||||||
- name: Build CodeCoverageSummary
|
- name: Build CodeCoverageSummary
|
||||||
run: dotnet build src/CodeCoverageSummary.sln --configuration Release --no-restore
|
run: dotnet build src/CodeCoverageSummary.sln --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Run CodeCoverageSummary with sample file
|
- name: Test with sample file
|
||||||
run: dotnet src/CodeCoverageSummary/bin/Release/net5.0/CodeCoverageSummary.dll src/coverage.cobertura.xml --badge true
|
run: dotnet src/CodeCoverageSummary/bin/Release/net5.0/CodeCoverageSummary.dll src/coverage.cobertura.xml --badge true
|
||||||
|
|
||||||
- name: Test Action
|
|
||||||
uses: irongut/CodeCoverageSummary@master
|
|
||||||
with:
|
|
||||||
filename: '/app/sample.coverage.xml'
|
|
||||||
badge: 'true'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user