Skip to content

fix: update actions/checkout to v5 and improve commit logic in update… #846

fix: update actions/checkout to v5 and improve commit logic in update…

fix: update actions/checkout to v5 and improve commit logic in update… #846

Workflow file for this run

name: Ubuntu x64
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
environment: Linux
strategy:
fail-fast: true # cancels sibling matrix jobs on failure
matrix:
dotnet-version: [10.0.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore ./src
- name: Build solution
run: dotnet build -c Release ./src --verbosity minimal
- name: Increase file descriptor limit
run: |
# Best-effort: raise soft limit up to current hard limit
HARD=$(ulimit -Hn)
echo "Current hard nofile limit: $HARD"
ulimit -Sn "$HARD" || true
ulimit -n
- name: Run tests and collect coverage
run: |
# Raise soft limit to hard limit (don't fail the job if not permitted)
ulimit -Sn "$(ulimit -Hn)" || true
ulimit -n
dotnet test -c Release ./src --verbosity normal --no-build --no-restore \
--collect:"XPlat Code Coverage" --results-directory ./TestResults/ \
/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura \
/p:CoverletOutput=./TestResults/coverage.cobertura.xml
- name: List files in TestResults directory
run: ls -R ./TestResults
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./TestResults/**/coverage.cobertura.xml
flags: unit
name: codecov-umbrella
fail_ci_if_error: false
verbose: true