-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (41 loc) · 1.21 KB
/
build.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
name: Build .NET
on:
push:
paths:
- "libraries/**"
branches: [develop, main]
pull_request:
paths:
- "libraries/**"
branches: [develop, main]
defaults:
run:
working-directory: ./libraries
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET 6.0 & 8.0
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3.0
with:
dotnet-version: |
6.0.405
8.0.101
- name: Build
run: dotnet build --configuration Release
- name: Test Examples
run: dotnet test ../examples/
- name: Test & Code Coverage
run: dotnet test --filter "Category!=E2E" --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal
- name: Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # 5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: false
name: codecov-lambda-powertools-dotnet
verbose: true
directory: ./libraries/codecov