-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (32 loc) · 1.43 KB
/
test-analysis-failure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@issue/OSOE-751
with:
machine-types: "[\"ubuntu-latest\", \"windows-latest\"]"
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@issue/OSOE-751
with:
machine-types: "[\"ubuntu-latest\", \"windows-latest\"]"
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.