aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci-format.yml
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-05-21 21:33:31 +0200
committerGitHub <noreply@github.com>2026-05-21 21:33:31 +0200
commite2fe5c163ae7ca12e862df70fb8d6caa14e86ef2 (patch)
treebc3e3ba05ddf069a6a103a81e1e70d5ee8cf392c /.github/workflows/ci-format.yml
parentbc8a66a35174acad9aca983d5fd311f5070b83a3 (diff)
parent0ef4f86ed7bdfde86046fb8ac694892e8206447e (diff)
Merge pull request #15250 from jakobkukla/ci-formatHEADmaster
Add CI format check
Diffstat (limited to '.github/workflows/ci-format.yml')
-rw-r--r--.github/workflows/ci-format.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci-format.yml b/.github/workflows/ci-format.yml
new file mode 100644
index 0000000000..a07764b30a
--- /dev/null
+++ b/.github/workflows/ci-format.yml
@@ -0,0 +1,25 @@
+name: Format
+on:
+ push:
+ branches:
+ - master
+ # Run formatter against the forked branch, but
+ # do not allow access to secrets
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories
+ pull_request:
+
+env:
+ SDK_VERSION: "10.0.x"
+
+jobs:
+ format-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+
+ - uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
+ with:
+ dotnet-version: ${{ env.SDK_VERSION }}
+
+ - name: Run DotNet Format
+ run: dotnet format --verify-no-changes --verbosity minimal