Skip to content

Commit

Permalink
Update healthchecks_npgsql_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alirexaa authored Dec 18, 2024
1 parent 9ad3389 commit a0dbc24
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions .github/workflows/healthchecks_npgsql_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,8 @@ on:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj &&
dotnet restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj &&
dotnet build --no-restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj
- name: Test
run: >
dotnet test
./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj
--no-restore
--no-build
--collect "XPlat Code Coverage"
--results-directory .coverage
--
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Upload Coverage
uses: codecov/codecov-action@v5
with:
flags: Npgsql
directory: .coverage
uses: ./.github/workflows/reusable_ci_workflow.yml
with:
PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj
TEST_PROJECT_PATH: ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj
CODECOV_FLAGS: Npgsql

0 comments on commit a0dbc24

Please sign in to comment.