Merge pull request #266 from maxmind/dependabot/nuget/WireMock.Net-1.… #605
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: Run tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '3 20 * * SUN' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
name: Dotnet on ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup dotnet 3.1 | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 3.1 | |
- name: Setup .NET 5.0 | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 5.0.* | |
- name: Setup .NET 6.0 | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 6.0.* | |
- name: Build | |
run: | | |
dotnet build MaxMind.GeoIP2 | |
dotnet build MaxMind.GeoIP2.Benchmark | |
dotnet build MaxMind.GeoIP2.UnitTests | |
- name: Run benchmark | |
run: dotnet run -f netcoreapp3.1 -p MaxMind.GeoIP2.Benchmark/MaxMind.GeoIP2.Benchmark.csproj | |
env: | |
MAXMIND_BENCHMARK_DB: ${{ github.workspace }}/MaxMind.GeoIP2.UnitTests/TestData/MaxMind-DB/test-data/GeoIP2-City-Test.mmdb | |
- name: Run tests | |
run: dotnet test MaxMind.GeoIP2.UnitTests/MaxMind.GeoIP2.UnitTests.csproj | |
env: | |
MAXMIND_TEST_BASE_DIR: ${{ github.workspace }}/MaxMind.GeoIP2.UnitTests |