Files
signalhub-ci-mirror 27776e00c6
e2e tests / test-setup-multiple-versions (ubuntu-latest) (push) Failing after 15s
e2e tests / test-setup-full-version (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-without-patch-version (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-prerelease-version (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-latest-patch-version (ubuntu-latest) (push) Failing after 7s
e2e tests / test-ABCxx-syntax (ubuntu-latest) (push) Failing after 6s
e2e tests / test-setup-with-wildcard (ubuntu-latest) (push) Failing after 6s
e2e tests / test-setup-global-json-specified-and-version (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-global-json-rollforward-latestmajor (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-global-json-rollforward-latestfeature (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-global-json-rollforward-latestpatch (ubuntu-latest) (push) Failing after 8s
e2e tests / test-global-json-with-comments (ubuntu-latest) (push) Failing after 7s
e2e tests / test-setup-with-dotnet-quality (ubuntu-latest) (push) Failing after 6s
e2e tests / test-setup-with-cache (ubuntu-latest) (push) Failing after 5s
e2e tests / test-setup-with-cache-dependency-path (ubuntu-latest) (push) Failing after 5s
e2e tests / test-dotnet-version-output-during-single-version-installation (ubuntu-latest) (push) Failing after 6s
e2e tests / test-dotnet-version-output-during-multiple-version-installation (ubuntu-latest) (push) Failing after 5s
e2e tests / test-bypass-proxy (push) Failing after 5s
e2e tests / test-sequential-version-installation (10.0.101, 9.0.308, ubuntu-latest) (push) Failing after 5s
e2e tests / test-setup-with-workloads-input (ubuntu-latest) (push) Failing after 5s
e2e tests / test-setup-with-architecture-input (x64, ubuntu-latest) (push) Failing after 5s
e2e tests / test-setup-latest-version (ubuntu-latest) (push) Failing after 5s
Validate dotnet / setup-version (10.0, ubuntu-latest) (push) Failing after 5s
Validate dotnet / setup-version (8.0, ubuntu-latest) (push) Failing after 6s
Validate dotnet / setup-version (9.0, ubuntu-latest) (push) Failing after 5s
e2e tests / test-setup-prerelease-version (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-prerelease-version (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-latest-patch-version (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-latest-patch-version (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-latest-patch-version (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-latest-patch-version (windows-latest) (push) Canceled after 0s
e2e tests / test-ABCxx-syntax (macos-15-intel) (push) Canceled after 0s
e2e tests / test-ABCxx-syntax (macos-latest) (push) Canceled after 0s
e2e tests / test-ABCxx-syntax (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-ABCxx-syntax (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-wildcard (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-with-wildcard (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-wildcard (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-with-wildcard (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-specified-and-version (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-global-json-specified-and-version (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-specified-and-version (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-global-json-specified-and-version (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestmajor (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestmajor (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestfeature (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-architecture-input (arm64, macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-architecture-input (x64, macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-architecture-input (x64, windows-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestfeature (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-latest-with-channel-abcxx (macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (10.0, macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (10.0, ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestpatch (windows-latest) (push) Canceled after 0s
e2e tests / test-global-json-with-comments (macos-15-intel) (push) Canceled after 0s
e2e tests / test-global-json-with-comments (macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (10.0, windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-dotnet-quality (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-global-json-rollforward-latestpatch (macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (10.0, macos-15-intel) (push) Canceled after 0s
Validate dotnet / setup-version (8.0, macos-15-intel) (push) Canceled after 0s
Validate dotnet / setup-version (8.0, macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (8.0, ubuntu-22.04) (push) Canceled after 0s
Validate dotnet / setup-version (8.0, windows-latest) (push) Canceled after 0s
e2e tests / test-global-json-with-comments (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-global-json-with-comments (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-dotnet-quality (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-with-dotnet-quality (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-with-dotnet-quality (windows-latest) (push) Canceled after 0s
Validate dotnet / setup-version (9.0, macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-with-cache (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-with-cache (macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (9.0, macos-latest) (push) Canceled after 0s
Validate dotnet / setup-version (9.0, ubuntu-22.04) (push) Canceled after 0s
Validate dotnet / setup-version (9.0, windows-latest) (push) Canceled after 0s
e2e tests / test-setup-full-version (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-without-patch-version (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-without-patch-version (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-cache (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-with-cache (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-cache-dependency-path (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-multiple-versions (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-multiple-versions (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-multiple-versions (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-multiple-versions (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-full-version (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-full-version (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-full-version (windows-latest) (push) Canceled after 0s
e2e tests / test-setup-without-patch-version (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-without-patch-version (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-with-cache-dependency-path (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-cache-dependency-path (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-setup-with-cache-dependency-path (windows-latest) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-15-intel) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-latest) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-single-version-installation (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-single-version-installation (windows-latest) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-15-intel) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-latest) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-multiple-version-installation (ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-dotnet-version-output-during-multiple-version-installation (windows-latest) (push) Canceled after 0s
e2e tests / test-proxy (push) Canceled after 0s
e2e tests / test-setup-prerelease-version (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-prerelease-version (macos-latest) (push) Canceled after 0s
e2e tests / test-sequential-version-installation (10.0.101, 9.0.308, macos-15-intel) (push) Canceled after 0s
e2e tests / test-sequential-version-installation (10.0.101, 9.0.308, macos-latest) (push) Canceled after 0s
e2e tests / test-sequential-version-installation (10.0.101, 9.0.308, ubuntu-22.04) (push) Canceled after 0s
e2e tests / test-sequential-version-installation (10.0.101, 9.0.308, windows-latest) (push) Canceled after 0s
e2e tests / test-setup-with-workloads-input (macos-15-intel) (push) Canceled after 0s
e2e tests / test-setup-with-workloads-input (macos-latest) (push) Canceled after 0s
e2e tests / test-setup-with-workloads-input (windows-latest) (push) Canceled after 0s
Vendored snapshot of setup-dotnet@v5 (no upstream history)
2026-09-18 18:02:10 +00:00

97 lines
3.6 KiB
TypeScript

import cscFile from '../.github/csc.json';
describe('csc tests', () => {
const regexPattern = cscFile['problemMatcher'][0]['pattern'][0]['regexp'];
const regexResultsMap = cscFile['problemMatcher'][0]['pattern'][0];
const regex = new RegExp(regexPattern);
const testCases: Array<{input: string; results: Record<string, string>}> = [
{
input:
'Program.cs(10,79): error CS1002: ; expected [/Users/zacharyeisinger/Documents/repo/setup-dotnet/__tests__/sample-broken-csproj/sample.csproj]',
results: {
file: 'Program.cs',
line: '10',
column: '79',
severity: 'error',
code: 'CS1002',
message: '; expected',
fromPath:
'/Users/zacharyeisinger/Documents/repo/setup-dotnet/__tests__/sample-broken-csproj/sample.csproj'
}
},
{
input:
"S:\\Msbuild\\src\\Build\\Evaluation\\ExpressionShredder.cs(33,7): error CS1003: Syntax error, ',' expected [S:\\msbuild\\src\\Build\\Microsoft.Build.csproj > Properties:prop]",
results: {
file: 'S:\\Msbuild\\src\\Build\\Evaluation\\ExpressionShredder.cs',
line: '33',
column: '7',
severity: 'error',
code: 'CS1003',
message: "Syntax error, ',' expected",
fromPath:
'S:\\msbuild\\src\\Build\\Microsoft.Build.csproj > Properties:prop'
}
},
{
// `dotnet format` style error
input:
'C:\\actions-runner\\_work\\Some\\Folder\\SomeFile.cs(222,8): error WHITESPACE: Fix whitespace formatting. Delete 1 characters. [C:\\actions-runner\\_work\\Some\\Folder\\SomeProject.csproj]',
results: {
file: 'C:\\actions-runner\\_work\\Some\\Folder\\SomeFile.cs',
line: '222',
column: '8',
severity: 'error',
code: 'WHITESPACE',
message: 'Fix whitespace formatting. Delete 1 characters.',
fromPath: 'C:\\actions-runner\\_work\\Some\\Folder\\SomeProject.csproj'
}
},
{
// CSC error with whitespace prefix
input:
' /Volumes/Code/ghe_actions-2.301.1/Some/Folder/SomeFile.cs(10,8): error CS1014: A get or set accessor expected [/Volumes/Code/ghe_actions-2.301.1/Some/Folder/SomeProject.csproj]',
results: {
file: '/Volumes/Code/ghe_actions-2.301.1/Some/Folder/SomeFile.cs',
line: '10',
column: '8',
severity: 'error',
code: 'CS1014',
message: 'A get or set accessor expected',
fromPath:
'/Volumes/Code/ghe_actions-2.301.1/Some/Folder/SomeProject.csproj'
}
},
{
// CSC error with MSBuild prefix
input:
' 20>C:\\actions-runner\\_work\\Some\\Folder\\SomeFile.cs(8,2): error CS1014: A get or set accessor expected [C:\\actions-runner\\_work\\Some\\Folder\\SomeProject.csproj]',
results: {
file: 'C:\\actions-runner\\_work\\Some\\Folder\\SomeFile.cs',
line: '8',
column: '2',
severity: 'error',
code: 'CS1014',
message: 'A get or set accessor expected',
fromPath: 'C:\\actions-runner\\_work\\Some\\Folder\\SomeProject.csproj'
}
}
];
test.each(testCases)(
'regex matches and parses: $input',
({input, results}: {input: string; results: Record<string, string>}) => {
const matchedResultsArray = input.match(regex);
expect(matchedResultsArray).not.toBeNull();
for (const propName in results) {
const propertyIndex = regexResultsMap[propName];
const expectedPropValue = results[propName];
const matchedPropValue = matchedResultsArray![propertyIndex];
expect(matchedPropValue).toEqual(expectedPropValue);
}
},
10000
);
});