Update dependency Microsoft.NET.Test.Sdk to v17.7.2 #1022
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: .NET Core | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .net dependencies | |
run: dotnet restore | |
- name: Install libpcap | |
run: sudo -E bash scripts/install-libpcap.sh | |
- name: Install tap | |
run: sudo -E bash scripts/install-tap.sh | |
- name: Build sharppcap assembly | |
run: dotnet build SharpPcap/SharpPcap.csproj | |
- name: Test | |
run: sudo -E bash scripts/test.sh | |
- run: sudo chmod -R +r Test/TestResults | |
if: always() | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
report_paths: Test/TestResults/TestResults.xml | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: artifacts | |
path: Test/TestResults/ | |
- name: publish on version change | |
id: publish_nuget | |
uses: alirezanet/publish-nuget@v3.1.0 | |
with: | |
# Filepath of the project to be packaged, relative to root of repository | |
PROJECT_FILE_PATH: SharpPcap/SharpPcap.csproj | |
# API key to authenticate with NuGet server | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default | |
INCLUDE_SYMBOLS: true |