chore: Metrics set custom FunctionName cold start dimension #1340
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 SDK | |
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3.0 | |
with: | |
dotnet-version: | | |
6.0.x | |
8.0.x | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore /tl | |
- name: Test & Code Coverage | |
run: dotnet test --no-restore --filter "Category!=E2E" --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal | |
- name: Test Examples | |
run: dotnet test ../examples/ --verbosity normal | |
- name: Codecov | |
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # 5.3.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
name: codecov-lambda-powertools-dotnet | |
verbose: true | |
directory: ./libraries/codecov |