fix: Bump the alldeps group with 10 updates (#28) #116
This file contains hidden or 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: .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 }} |