Skip to content

Commit 16284ee

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] lint and test actions splitted
1 parent 7257d91 commit 16284ee

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/dotnet-lint.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# yamllint disable rule:line-length
2+
# This workflow will build a .NET project
3+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
4+
# yamllint enable rule:line-length
5+
6+
---
7+
name: dotNET Tests
8+
9+
on: # yamllint disable-line rule:truthy
10+
push:
11+
branches: ["main"]
12+
pull_request:
13+
# The branches below must be a subset of the branches above
14+
branches: ["main"]
15+
workflow_dispatch:
16+
17+
jobs:
18+
lint:
19+
name: "Run LINT"
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: ["windows-2022", "windows-2025", "ubuntu-24.04", "macos-14"]
24+
dotnet-version: [8.x, 9.x]
25+
runs-on: ${{ matrix.os }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Setup .NET ${{ matrix.dotnet-version }}
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: ${{ matrix.dotnet-version }}
32+
- name: Tooling check
33+
run: >
34+
dotnet --version
35+
- name: Restore dependencies
36+
run: dotnet restore
37+
- name: Lint (codestyle)
38+
run: dotnet format --verify-no-changes --verbosity normal

.github/workflows/dotnet.yml renamed to .github/workflows/dotnet-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
run: dotnet restore
3737
- name: Build
3838
run: dotnet build --no-restore
39-
- name: Lint (codestyle)
40-
run: dotnet format --verify-no-changes --verbosity normal
4139
- name: Test
4240
run: >
4341
dotnet test --no-build

0 commit comments

Comments
 (0)