Skip to content

Commit c6e48cd

Browse files
author
Gonzalo Diaz
committed
[CONFIG] dotnet script for github-actions. Split in 2: One for Coverage, the another to run multi-version/multi-OS tests.
1 parent cd743c3 commit c6e48cd

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/dotnet-coverage.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ main, develop, feature/* ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
name: "Run CI"
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: ["windows-latest"]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: 8.0.x
26+
- name: Restore dependencies
27+
run: dotnet restore --verbosity normal
28+
- name: Build
29+
run: dotnet build --no-restore --verbosity normal
30+
- name: Test
31+
run: dotnet test --no-build --verbosity normal
32+
- name: Upload coverage reports to Codecov
33+
uses: codecov/codecov-action@v4.3.1
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/dotnet.yml

-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ jobs:
3333
run: dotnet build --no-restore
3434
- name: Test
3535
run: dotnet test --no-build --verbosity normal
36-
- name: Upload coverage reports to Codecov
37-
uses: codecov/codecov-action@v4.3.1
38-
with:
39-
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)