Skip to content

Commit 564baf4

Browse files
Merge pull request #406 from TransactionProcessing/nightly/#397_workflowupdates
Nightly/#397 workflowupdates
2 parents 2c6d7e4 + 6d16239 commit 564baf4

1 file changed

Lines changed: 45 additions & 48 deletions

File tree

.github/workflows/nightlybuild.yml

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install NET 7
2828
uses: actions/setup-dotnet@v2
2929
with:
30-
dotnet-version: '7.0.x'
30+
dotnet-version: '7.0.101'
3131

3232
- name: Restore Nuget Packages
3333
run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -79,7 +79,7 @@ jobs:
7979
- name: Install NET 7
8080
uses: actions/setup-dotnet@v2
8181
with:
82-
dotnet-version: '7.0.x'
82+
dotnet-version: '7.0.101'
8383

8484
- name: Restore Nuget Packages
8585
run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -98,14 +98,14 @@ jobs:
9898
run: |
9999
dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest
100100
101-
- name: Create Issue on Failed workflow
101+
- uses: dacbd/create-issue-action@main
102102
if: ${{ failure() }}
103-
uses: dacbd/create-issue-action@main
103+
name: Create an issue on build failure
104104
with:
105-
token: ${{ github.token }}
106105
title: Investigate Nightly Build Failure - Firefox UI
107-
body: Url is ${{env.action_url}}
106+
token: ${{secrets.GITHUB_TOKEN}}
108107
labels: nightlybuild
108+
body: Url is ${{env.action_url}}
109109

110110
buildchromeui:
111111
name: "Nightly Build - Chrome UI"
@@ -128,7 +128,7 @@ jobs:
128128
- name: Install NET 7
129129
uses: actions/setup-dotnet@v2
130130
with:
131-
dotnet-version: '7.0.x'
131+
dotnet-version: '7.0.101'
132132

133133
- name: Restore Nuget Packages
134134
run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -152,14 +152,14 @@ jobs:
152152
run: |
153153
dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest
154154
155-
- name: Create Issue on Failed workflow
155+
- uses: dacbd/create-issue-action@main
156156
if: ${{ failure() }}
157-
uses: dacbd/create-issue-action@main
157+
name: Create an issue on build failure
158158
with:
159-
token: ${{ github.token }}
160159
title: Investigate Nightly Build Failure - Chrome UI
161-
body: Url is ${{env.action_url}}
160+
token: ${{secrets.GITHUB_TOKEN}}
162161
labels: nightlybuild
162+
body: Url is ${{env.action_url}}
163163

164164
buildedgeui:
165165
name: "Nightly Build - Edge UI"
@@ -182,7 +182,7 @@ jobs:
182182
- name: Install NET 7
183183
uses: actions/setup-dotnet@v2
184184
with:
185-
dotnet-version: '7.0.x'
185+
dotnet-version: '7.0.101'
186186

187187
- name: Restore Nuget Packages
188188
run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -203,51 +203,48 @@ jobs:
203203
run: |
204204
dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest
205205
206-
- name: Create Issue on Failed workflow
206+
- uses: dacbd/create-issue-action@main
207207
if: ${{ failure() }}
208-
uses: dacbd/create-issue-action@main
208+
name: Create an issue on build failure
209209
with:
210-
token: ${{ github.token }}
211210
title: Investigate Nightly Build Failure - Edge UI
212-
body: Url is ${{env.action_url}}
211+
token: ${{secrets.GITHUB_TOKEN}}
213212
labels: nightlybuild
213+
body: Url is ${{env.action_url}}
214214

215-
#codecoverage:
216-
# name: "Nightly Build - Code Coverage"
217-
# env:
218-
# ASPNETCORE_ENVIRONMENT: "Production"
215+
codecoverage:
216+
name: "Nightly Build - Code Coverage"
217+
env:
218+
ASPNETCORE_ENVIRONMENT: "Production"
219219

220-
# runs-on: ubuntu-latest
220+
runs-on: ubuntu-latest
221221

222-
# steps:
223-
# - uses: actions/checkout@v2.3.4
222+
steps:
223+
- uses: actions/checkout@v2.3.4
224224

225-
# - name: Install NET 7
226-
# uses: actions/setup-dotnet@v2
227-
# with:
228-
# dotnet-version: '7.0.x'
225+
- name: Install NET 7
226+
uses: actions/setup-dotnet@v2
227+
with:
228+
dotnet-version: '7.0.x'
229229

230-
# - name: Restore Nuget Packages
231-
# run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
230+
- name: Restore Nuget Packages
231+
run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
232232

233-
# - name: Build Code
234-
# run: dotnet build SecurityService.sln --configuration Release
233+
- name: Build Code
234+
run: dotnet build SecurityService.sln --configuration Release
235+
236+
- name: Run Unit Tests
237+
run: |
238+
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
239+
dotnet test "SecurityService.UnitTests\SecurityService.UnitTests.csproj" /p:ExcludeByFile="\SecurityService\Views\**\*.cshtml" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
235240
236-
# - name: Run Unit Tests
237-
# run: |
238-
# echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
239-
# dotnet test "SecurityService.UnitTests\SecurityService.UnitTests.csproj" /p:ExcludeByFile="\SecurityService\Views\**\*.cshtml" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
241+
- name: Upload coverage reports to Codecov
242+
uses: codecov/codecov-action@v3
243+
with:
244+
files: ./lcov1.info
240245

241-
# - name: Setup Node.js for use with actions
242-
# uses: actions/setup-node@v1.4.4
243-
244-
# - name: Combine Coverage
245-
# run: |
246-
# npm i lcov-result-merger
247-
# ./node_modules/lcov-result-merger/bin/lcov-result-merger.js '*.info' lcov.info
248-
249-
# - name: Upload Code Coverage
250-
# uses: coverallsapp/github-action@master
251-
# with:
252-
# github-token: ${{ secrets.github_token }}
253-
# path-to-lcov: lcov.info
246+
- name: Upload Code Coverage
247+
uses: coverallsapp/github-action@master
248+
with:
249+
github-token: ${{ secrets.github_token }}
250+
path-to-lcov: lcov.info

0 commit comments

Comments
 (0)