diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 446e15edb..8d3d34256 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: workflow_dispatch: env: DOTNET_NOLOGO: true +defaults: + run: + shell: pwsh jobs: build: name: Windows diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml new file mode 100644 index 000000000..69962debb --- /dev/null +++ b/.github/workflows/code-analysis.yml @@ -0,0 +1,12 @@ +name: Code Analysis +on: + push: + branches: + - main + - master + - release-* + pull_request: + workflow_dispatch: +jobs: + code-analysis: + uses: particular/shared-workflows/.github/workflows/code-analysis.yml@main diff --git a/.github/workflows/nuget-audit.yml b/.github/workflows/nuget-audit.yml index e02d6d8b7..5480ce13e 100644 --- a/.github/workflows/nuget-audit.yml +++ b/.github/workflows/nuget-audit.yml @@ -4,16 +4,6 @@ on: env: DOTNET_NOLOGO: true jobs: - build: - name: Linux - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4.2.0 - with: - global-json-file: global.json - - name: Restore - id: restore - run: dotnet restore src + call-shared-nuget-audit: + uses: particular/shared-workflows/.github/workflows/nuget-audit.yml@main + secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e96fde4e7..a4bfcd035 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ on: workflow_dispatch: env: DOTNET_NOLOGO: true +defaults: + run: + shell: pwsh jobs: windows-standalone: if: ${{ github.actor != 'dependabot[bot]' }} @@ -19,7 +22,6 @@ jobs: - name: Check for secrets env: SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }} - shell: pwsh run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 }) - name: Checkout uses: actions/checkout@v4.2.2 @@ -75,7 +77,6 @@ jobs: nugets/* retention-days: 1 - name: Verify release artifact counts - shell: pwsh run: | $assetsCount = (Get-ChildItem -Recurse -File assets).Count $nugetsCount = (Get-ChildItem -Recurse -File nugets).Count diff --git a/src/ServicePulse.Host/Properties/AssemblyInfo.cs b/src/ServicePulse.Host/Properties/AssemblyInfo.cs deleted file mode 100644 index bdd8640d9..000000000 --- a/src/ServicePulse.Host/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("ServicePulse.Host.Tests")] diff --git a/src/ServicePulse.Host/ServicePulse.Host.csproj b/src/ServicePulse.Host/ServicePulse.Host.csproj index 4e5992f49..60d81eaac 100644 --- a/src/ServicePulse.Host/ServicePulse.Host.csproj +++ b/src/ServicePulse.Host/ServicePulse.Host.csproj @@ -28,4 +28,8 @@ + + + + \ No newline at end of file