Skip to content

Commit 1a434fb

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] lint and test actions splitted
1 parent 8e890b5 commit 1a434fb

File tree

2 files changed

+56
-15
lines changed

2 files changed

+56
-15
lines changed

.github/workflows/dotnet-coverage.yml renamed to .github/workflows/dotnet-lint.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# yamllint enable rule:line-length
55

66
---
7-
name: dotNET Coverage
7+
name: dotNET Tests
88

99
on: # yamllint disable-line rule:truthy
1010
push:
@@ -15,26 +15,24 @@ on: # yamllint disable-line rule:truthy
1515
workflow_dispatch:
1616

1717
jobs:
18-
coverage:
19-
name: "Run Coverage"
18+
lint:
19+
name: "Run LINT"
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: ["windows-2025"]
23+
os: ["windows-2022", "windows-2025", "ubuntu-24.04", "macos-14"]
24+
dotnet-version: [8.x, 9.x]
2425
runs-on: ${{ matrix.os }}
2526
steps:
2627
- uses: actions/checkout@v4
27-
- name: Setup .NET
28+
- name: Setup .NET ${{ matrix.dotnet-version }}
2829
uses: actions/setup-dotnet@v4
2930
with:
30-
dotnet-version: 8.0.x
31+
dotnet-version: ${{ matrix.dotnet-version }}
32+
- name: Tooling check
33+
run: >
34+
dotnet --version
3135
- name: Restore dependencies
32-
run: dotnet restore --verbosity normal
33-
- name: Build
34-
run: dotnet build --no-restore --verbosity normal
35-
- name: Test
36-
run: dotnet test --no-build --verbosity normal
37-
- name: Upload coverage reports to Codecov
38-
uses: codecov/[email protected]
39-
with:
40-
token: ${{ secrets.CODECOV_TOKEN }}
36+
run: dotnet restore
37+
- name: Lint (codestyle)
38+
run: dotnet format --verify-no-changes --verbosity normal

.github/workflows/dotnet-test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
test:
19+
name: "Run Tests"
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: Build
38+
run: dotnet build --no-restore
39+
- name: Test
40+
run: >
41+
dotnet test --no-build
42+
--verbosity normal
43+
--logger "console;verbosity=detailed"

0 commit comments

Comments
 (0)