-
Notifications
You must be signed in to change notification settings - Fork 27
ci: gate all checks behind a single required job and fix merge queue #801
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
04466b8
ci: consolidate PR checks behind a single required "CI Gate" job
askpt 95af77b
ci: split the gated jobs into reusable workflows
askpt 95c5504
ci: fix stale workflow paths in the solution file
askpt 71fb5e9
ci: tighten permissions and checkout credentials in the reusable work…
askpt 7225364
ci: fail the fork package upload when no packages are produced
askpt 078e725
Removed comments.
askpt 2f45012
ci: update coverage job comment to clarify merge queue requirements
askpt 2c5c7e7
Update lint-pr.yml
askpt 4e6d373
Refactor PR lint workflow for merge group support
askpt be0f177
Potential fix for pull request finding 'CodeQL / Workflow does not co…
askpt 6380c4e
Update lint-pr.yml
askpt 2ab706c
Refactor Lint PR workflow configuration
askpt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: "Setup .NET" | ||
| description: "Installs the .NET SDK pinned by global.json and restores the NuGet package cache" | ||
|
|
||
| inputs: | ||
| cache-key-suffix: | ||
| description: "Extra qualifier appended to the NuGet cache key, e.g. the runner architecture" | ||
| required: false | ||
| default: "" | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Setup .NET SDK | ||
| uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6 | ||
| with: | ||
| global-json-file: global.json | ||
|
|
||
| - name: Cache NuGet packages | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ~/.nuget/packages | ||
| key: ${{ runner.os }}${{ inputs.cache-key-suffix }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Packages.props', 'global.json') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}${{ inputs.cache-key-suffix }}-nuget- | ||
| ${{ runner.os }}-nuget- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Reusable / Build & Test | ||
|
|
||
| # Callable building block for ci.yml. `workflow_call` is the only trigger on purpose: a | ||
| # reusable workflow that also triggered on its own would run twice for every event. | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: ${{ matrix.os }} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| submodules: recursive | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| persist-credentials: false | ||
|
|
||
| - name: Setup .NET | ||
| uses: ./.github/actions/setup-dotnet | ||
|
|
||
| - name: Restore | ||
| run: dotnet restore | ||
|
|
||
| - name: Build | ||
| run: dotnet build -c Release --no-restore | ||
|
|
||
| - name: Test | ||
| run: dotnet test -c Release --no-build --report-github --ignore-exit-code 8 | ||
|
|
||
| - name: aot-publish test | ||
| run: dotnet publish ./samples/AspNetCore/Samples.AspNetCore.csproj | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.