Skip to content

Commit a2a88b2

Browse files
Merge pull request #242 from TransactionProcessing/nightly/#235_workflowtweaks
workflow updates for code coverage
2 parents c262778 + 725c76b commit a2a88b2

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.github/workflows/nightlybuild.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install NET 7
2323
uses: actions/setup-dotnet@v2
2424
with:
25-
dotnet-version: '7.0.x'
25+
dotnet-version: '7.0.101'
2626

2727
- name: Restore Nuget Packages
2828
run: dotnet restore FileProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -41,16 +41,10 @@ jobs:
4141
- name: Setup Node.js for use with actions
4242
uses: actions/setup-node@v1.4.4
4343

44-
#- name: Combine Coverage
45-
# run: |
46-
# npm i lcov-result-merger
47-
# ./node_modules/lcov-result-merger/bin/lcov-result-merger.js '*.info' 'lcov.info'
48-
49-
#- name: Upload Code Coverage
50-
# uses: coverallsapp/github-action@master
51-
# with:
52-
# github-token: ${{ secrets.github_token }}
53-
# path-to-lcov: lcov.info
44+
- name: Upload coverage reports to Codecov
45+
uses: codecov/codecov-action@v3
46+
with:
47+
files: ./lcov1.info,./lcov2.info,./lcov3.info,./lcov4.info
5448

5549
- name: Build Docker Image
5650
run: docker build . --file FileProcessor/Dockerfile --tag fileprocessor:latest
@@ -64,12 +58,12 @@ jobs:
6458
name: tracelogs
6559
path: /home/txnproc/trace/
6660

67-
#- uses: nashmaniac/create-issue-action@v1.1
68-
# if: ${{ failure() }}
69-
# name: Create an issue on build failure
70-
# with:
71-
# title: Investigate Nightly Build Failure
72-
# token: ${{secrets.GITHUB_TOKEN}}
73-
# labels: nightlybuild
74-
# body: Url is ${{env.action_url}}
61+
- uses: dacbd/create-issue-action@main
62+
if: ${{ failure() }}
63+
name: Create an issue on build failure
64+
with:
65+
title: Investigate Nightly Build Failure
66+
token: ${{secrets.GITHUB_TOKEN}}
67+
labels: nightlybuild
68+
body: Url is ${{env.action_url}}
7569

0 commit comments

Comments
 (0)