From 82c7aab8764f9915262f13fa06787e1401e2b956 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Wed, 13 Nov 2024 12:07:14 +0300 Subject: [PATCH] [#13] Execute .NET code analyzers in CI Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/lint-build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/lint-build.yml diff --git a/.forgejo/workflows/lint-build.yml b/.forgejo/workflows/lint-build.yml new file mode 100644 index 0000000..ce8b798 --- /dev/null +++ b/.forgejo/workflows/lint-build.yml @@ -0,0 +1,22 @@ +name: lint-build +on: + push: + pull_request: + +jobs: + lint-build: + name: dotnet${{ matrix.dotnet }} + runs-on: docker + container: git.frostfs.info/truecloudlab/env:dotnet-${{ matrix.dotnet }} + strategy: + matrix: + dotnet: + - '8.0' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # Dotnet runs code analyzers on build (if configured): + # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-8#enable-on-build + - run: dotnet build