-
Notifications
You must be signed in to change notification settings - Fork 913
Add GitHub Actions workflow for .NET project #5445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This workflow automates the build and test process for .NET projects on push and pull request events to the master branch.
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-version: 1.9.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
|
@Itsskell please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a GitHub Actions workflow to automate build and test processes for the Azure Pipelines Agent project. However, the workflow uses generic .NET commands that bypass the project's custom build system, which is incompatible with this codebase's architecture.
Changes:
- Adds a new GitHub Actions workflow file (.github/workflows/dotnet.yml) with a basic .NET build and test pipeline
- Configures the workflow to trigger on push and pull requests to the master branch
- Sets up .NET 8.0.x with standard dotnet restore, build, and test commands
.github/workflows/dotnet.yml
Outdated
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: 8.0.x | ||
| - name: Restore dependencies | ||
| run: dotnet restore | ||
| - name: Build | ||
| run: dotnet build --no-restore | ||
| - name: Test | ||
| run: dotnet test --no-build --verbosity normal |
Copilot
AI
Jan 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dotnet version is set to 8.0.x, but the project's Common.props specifies support for both net8.0 and net6.0 target frameworks. The existing Azure Pipelines configuration (.vsts.ci.yml) uses targetFramework: 'net8.0' by default but the project officially supports both. Consider whether net6.0 testing should also be included, or document why only net8.0 is being tested in this GitHub Actions workflow.
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal | |
| strategy: | |
| matrix: | |
| include: | |
| - framework: net6.0 | |
| dotnet-version: 6.0.x | |
| - framework: net8.0 | |
| dotnet-version: 8.0.x | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore -f ${{ matrix.framework }} | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal -f ${{ matrix.framework }} |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…b/labelChecker/actions/core-1.9.1 Bump @actions/core from 1.2.6 to 1.9.1 in /.github/labelChecker
This workflow automates the build and test process for .NET projects on push and pull request events to the master branch.
Context
Explain the context or motivation behind this PR. Include links to any related Azure DevOps Work Items or GitHub issues.
📌 How to link to ADO Work Items
Description
Provide a concise summary of the changes introduced in this PR.
Risk Assessment (Low / Medium / High)
Assess the risk level and justify your assessment. For example: code path sensitivity, usage scope, or backward compatibility concerns.
Unit Tests Added or Updated (Yes / No)
Indicate whether unit tests were added or modified to reflect the changes.
Additional Testing Performed
List manual or automated tests performed beyond unit tests (e.g., integration, scenario, regression).
Change Behind Feature Flag (Yes / No)
Can this change be behine feature flag, if not why?
Tech Design / Approach
Documentation Changes Required (Yes/No)
Indicate whether related documentation needs to be updated.
Logging Added/Updated (Yes/No)
Telemetry Added/Updated (Yes/No)
Rollback Scenario and Process (Yes/No)
Dependency Impact Assessed and Regression Tested (Yes/No)