This commit is contained in:
@@ -54,7 +54,6 @@ jobs:
|
|||||||
name: coverage
|
name: coverage
|
||||||
path: ${{ github.workspace }}/Cobertura.xml
|
path: ${{ github.workspace }}/Cobertura.xml
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
- run: ls
|
|
||||||
- name: Publish Code Coverage Report
|
- name: Publish Code Coverage Report
|
||||||
uses: irongut/CodeCoverageSummary@v1.3.0
|
uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
with:
|
with:
|
||||||
@@ -67,13 +66,13 @@ jobs:
|
|||||||
indicators: true
|
indicators: true
|
||||||
output: both
|
output: both
|
||||||
thresholds: "10 30"
|
thresholds: "10 30"
|
||||||
|
- run: ls
|
||||||
- name: Add Coverage PR Comment
|
- name: Add Coverage PR Comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
message: |
|
recreate: true
|
||||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
path: code-coverage-results.md
|
||||||
|
|
||||||
- name: Upload Test Result Files
|
- name: Upload Test Result Files
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
name: dotnet package
|
# name: dotnet package
|
||||||
|
|
||||||
on: [push]
|
# on: [push]
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
dotnet-version: [ '8.0.x' ]
|
# dotnet-version: [ '8.0.x' ]
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: Setup dotnet
|
# - name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
# uses: actions/setup-dotnet@v3
|
||||||
with:
|
# with:
|
||||||
dotnet-version: '8.0.x'
|
# dotnet-version: '8.0.x'
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: dotnet restore ./src/LittleTown.sln
|
# run: dotnet restore ./src/LittleTown.sln
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: dotnet build ./src/LittleTown.sln
|
# run: dotnet build ./src/LittleTown.sln
|
||||||
- name: Test with the dotnet CLI
|
# - name: Test with the dotnet CLI
|
||||||
run: dotnet test ./src/LittleTown.sln
|
# run: dotnet test ./src/LittleTown.sln
|
||||||
Reference in New Issue
Block a user