Skip to content

Adding Validate NuGet Publish workflow, adding missing job names #256

Adding Validate NuGet Publish workflow, adding missing job names

Adding Validate NuGet Publish workflow, adding missing job names #256

name: Test Analysis Failure
# Runs for PRs opened for any branch, and pushes to the dev branch.
on:
pull_request:
push:
branches:
- dev
jobs:
call-test-analysis-failure-nuget:
name: Test Analysis Failure - NuGet PackageReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
build-directory: TestSolutions/Lombiq.Analyzers.PackageReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
IDE0021: Use expression body for constructors.
IDE0044: Make field readonly.
S2933: Make 'Number' 'readonly'.
S4487: Remove this unread private field 'Number' or refactor the code to use its value.
call-test-analysis-failure-local:
name: Test Analysis Failure - Local ProjectReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
build-directory: TestSolutions/Lombiq.Analyzers.ProjectReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
IDE0021: Use expression body for constructors.
IDE0044: Make field readonly.
S2933: Fields that are only assigned in the constructor should be "readonly"
S4487: Remove this unread private field 'Number' or refactor the code to use its value.