-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.14 KB
/
code-style-check.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (c) Omar Boukli-Hacene. All rights reserved.
# Distributed under an MIT-style license that can be
# found in the LICENSE file.
# SPDX-License-Identifier: MIT
name: Code style check
on:
pull_request:
branches:
- main
paths:
- src/**
- test/**
push:
branches:
- main
paths:
- src/**
- test/**
workflow_dispatch:
permissions: {}
jobs:
build:
name: Check .NET solution code style
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NUGET_SIGNATURE_VERIFICATION: true
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: |-
src/**/packages.lock.json
test/**/packages.lock.json
global-json-file: global.json
- name: Run dotnet format
run: >-
dotnet format
--verbosity quiet
--verify-no-changes