Skip to content

Commit 7e6194a

Browse files
GitHubSync update - release-1.45 (#2278)
* GitHubSync update - release-1.45 * Fix code analysis issues --------- Co-authored-by: internalautomation[bot] <85681268+internalautomation[bot]@users.noreply.github.com> Co-authored-by: Brandon Ording <[email protected]>
1 parent 9ad2703 commit 7e6194a

File tree

6 files changed

+25
-18
lines changed

6 files changed

+25
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
workflow_dispatch:
99
env:
1010
DOTNET_NOLOGO: true
11+
defaults:
12+
run:
13+
shell: pwsh
1114
jobs:
1215
build:
1316
name: Windows
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Code Analysis
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
- release-*
8+
pull_request:
9+
workflow_dispatch:
10+
jobs:
11+
code-analysis:
12+
uses: particular/shared-workflows/.github/workflows/code-analysis.yml@main

.github/workflows/nuget-audit.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ on:
44
env:
55
DOTNET_NOLOGO: true
66
jobs:
7-
build:
8-
name: Linux
9-
runs-on: ubuntu-22.04
10-
steps:
11-
- name: Checkout
12-
uses: actions/[email protected]
13-
- name: Setup .NET SDK
14-
uses: actions/[email protected]
15-
with:
16-
global-json-file: global.json
17-
- name: Restore
18-
id: restore
19-
run: dotnet restore src
7+
call-shared-nuget-audit:
8+
uses: particular/shared-workflows/.github/workflows/nuget-audit.yml@main
9+
secrets: inherit

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
workflow_dispatch:
1212
env:
1313
DOTNET_NOLOGO: true
14+
defaults:
15+
run:
16+
shell: pwsh
1417
jobs:
1518
windows-standalone:
1619
if: ${{ github.actor != 'dependabot[bot]' }}
@@ -19,7 +22,6 @@ jobs:
1922
- name: Check for secrets
2023
env:
2124
SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }}
22-
shell: pwsh
2325
run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 })
2426
- name: Checkout
2527
uses: actions/[email protected]
@@ -75,7 +77,6 @@ jobs:
7577
nugets/*
7678
retention-days: 1
7779
- name: Verify release artifact counts
78-
shell: pwsh
7980
run: |
8081
$assetsCount = (Get-ChildItem -Recurse -File assets).Count
8182
$nugetsCount = (Get-ChildItem -Recurse -File nugets).Count

src/ServicePulse.Host/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/ServicePulse.Host/ServicePulse.Host.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@
2828
<Content Include="app\js\app.constants.js" CopyToOutputDirectory="PreserveNewest" Condition="Exists('app\js\app.constants.js')" />
2929
</ItemGroup>
3030

31+
<ItemGroup>
32+
<InternalsVisibleTo Include="ServicePulse.Host.Tests" />
33+
</ItemGroup>
34+
3135
</Project>

0 commit comments

Comments
 (0)