Use recommended NATS.Net client for Nats package #614
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 Network CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- src/HealthChecks.Network/** | |
- test/HealthChecks.Network.Tests/** | |
- test/_SHARED/** | |
- .github/workflows/healthchecks_network_ci.yml | |
- Directory.Build.props | |
- Directory.Build.targets | |
- Directory.Packages.props | |
tags-ignore: | |
- release-* | |
- preview-* | |
pull_request: | |
branches: [ master ] | |
paths: | |
- src/HealthChecks.Network/** | |
- test/HealthChecks.Network.Tests/** | |
- test/_SHARED/** | |
- .github/workflows/healthchecks_network_ci.yml | |
- Directory.Build.props | |
- Directory.Build.targets | |
- Directory.Packages.props | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
#services: | |
# ftp: | |
# image: bogem/ftp | |
# ports: | |
# - 21:21 | |
# - 47400-47470:47400-47470 | |
# env: | |
# FTP_USER: bob | |
# FTP_PASS: 12345 | |
# PASV_ADDRESS: 127.0.0.1 | |
# sftp: | |
# image: atmoz/sftp | |
# ports: | |
# - 22:22 | |
# volumes: | |
# - ${{ github.workspace }}/build/docker-services/certificate/id_rsa.pub:/home/foo/.ssh/keys/id_rsa.pub #:ro | |
# - ${{ github.workspace }}/build/docker-services/sftp/users.conf:/etc/sftp/users.conf #:ro | |
# mail: | |
# image: tvial/docker-mailserver:latest | |
# options: --hostname mail --container_name mail --domainname healthchecks.com | |
# ports: | |
# - 25:25 | |
# - 143:143 | |
# - 465:465 | |
# - 587:587 | |
# - 993:993 | |
# - 995:995 | |
# env: | |
# SSL_TYPE: self-signed | |
# DMS_DEBUG: 1 | |
# volumes: | |
# - ${{ github.workspace }}/build/docker-services/mail/:/tmp/docker-mailserver/ | |
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.Network/HealthChecks.Network.csproj && | |
dotnet restore ./test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj | |
- name: Check formatting | |
run: | | |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Network/HealthChecks.Network.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | |
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | |
- name: Build | |
run: | | |
dotnet build --no-restore ./src/HealthChecks.Network/HealthChecks.Network.csproj && | |
dotnet build --no-restore ./test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj | |
#- name: Test | |
# run: > | |
# dotnet test | |
# ./test/HealthChecks.Network.Tests/HealthChecks.Network.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: Network | |
# directory: .coverage |