Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build and Tests

on:
push:
branches: [ v2 ]
branches: [ '**' ]
pull_request:
branches: [ v2 ]
branches: [ '**' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
Expand All @@ -14,12 +16,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.301
dotnet-version: |
3.1.x
5.0.x
- name: Install dependencies
run: dotnet restore
run: dotnet restore src/GeoJSON.Net.sln
- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build src/GeoJSON.Net.sln --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal