Skip to content

Commit

Permalink
Merge pull request #173 from janusw/gha
Browse files Browse the repository at this point in the history
Add a working GitHub Actions config (for CI builds)
  • Loading branch information
xfischer authored Feb 13, 2024
2 parents e6d5fa7 + 1c730f8 commit 7cc00fb
Showing 1 changed file with 11 additions and 7 deletions.
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

0 comments on commit 7cc00fb

Please sign in to comment.