Skip to content

fix: Bump the alldeps group with 10 updates (#28) #116

fix: Bump the alldeps group with 10 updates (#28)

fix: Bump the alldeps group with 10 updates (#28) #116

Workflow file for this run

name: .NET
on:
push:
branches:
- main
- next
- beta
- dev
- "*.x"
pull_request:
branches:
- main
- next
- beta
- dev
- "*.x"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Fix libldap for tests
run: |
sudo apt-get update
sudo apt-get install --upgrade -y libldap2
sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so.2 /usr/lib/libldap-2.5.so.0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Restore tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore --locked-mode
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal -p:TestingPlatformCommandLineArguments="--report-trx --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml"
- name: Convert test results
if: ${{ !cancelled() }}
run: |
find . -name "*.trx" -exec dotnet tool run trx2junit --output TestResults/JUnit {} +
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: AlbusKavaliro/TraceableLdapClient
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
files: TestResults/JUnit/*.xml
token: ${{ secrets.CODECOV_TOKEN }}