Bump Roslynator.Formatting.Analyzers from 4.3.0 to 4.4.0 #445
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: HealthChecks NPGSQL DB CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- src/HealthChecks.NpgSql/** | |
- test/HealthChecks.Npgsql.Tests/** | |
- test/_SHARED/** | |
- .github/workflows/healthchecks_npgsql_ci.yml | |
- Directory.Build.props | |
- Directory.Build.targets | |
tags-ignore: | |
- release-* | |
- preview-* | |
pull_request: | |
branches: [ master ] | |
paths: | |
- src/HealthChecks.NpgSql/** | |
- test/HealthChecks.Npgsql.Tests/** | |
- test/_SHARED/** | |
- .github/workflows/healthchecks_npgsql_ci.yml | |
- Directory.Build.props | |
- Directory.Build.targets | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
npgsql: | |
image: postgres | |
ports: | |
- 8010:5432 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: Password12! | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.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@v3 | |
with: | |
flags: Npgsql | |
directory: .coverage |