-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (28 loc) · 690 Bytes
/
Copy pathpre-commit-format.yml
File metadata and controls
35 lines (28 loc) · 690 Bytes
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: Formatting
on:
workflow_dispatch:
pull_request:
branches:
- "**"
merge_group:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dotnet-format:
runs-on: ubuntu-22.04
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Check formatting
run: |
dotnet format --verify-no-changes --verbosity diagnostic