Update dependency log4net to v3 #188
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: | |
ubuntu: | |
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: Build | |
run: dotnet build -c Release | |
- name: Test | |
run: dotnet test | |
- name: publish on version change | |
id: publish_nuget | |
uses: alirezanet/[email protected] | |
with: | |
# Filepath of the project to be packaged, relative to root of repository | |
PROJECT_FILE_PATH: PacketDotNetConnections/PacketDotNetConnections.csproj | |
# API key to authenticate with NuGet server | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
windows: | |
runs-on: windows-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 winpcap | |
uses: crazy-max/ghaction-chocolatey@v2 | |
with: | |
args: install winpcap | |
- name: Build | |
run: dotnet build -c Release | |
- name: Test | |
run: dotnet test |