Skip to content

Commit 7cc00fb

Browse files
authored
Merge pull request #173 from janusw/gha
Add a working GitHub Actions config (for CI builds)
2 parents e6d5fa7 + 1c730f8 commit 7cc00fb

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Build and Tests
22

33
on:
44
push:
5-
branches: [ v2 ]
5+
branches: [ '**' ]
66
pull_request:
7-
branches: [ v2 ]
7+
branches: [ '**' ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
810

911
jobs:
1012
build:
@@ -14,12 +16,14 @@ jobs:
1416
steps:
1517
- uses: actions/checkout@v2
1618
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
19+
uses: actions/setup-dotnet@v4
1820
with:
19-
dotnet-version: 3.1.301
21+
dotnet-version: |
22+
3.1.x
23+
5.0.x
2024
- name: Install dependencies
21-
run: dotnet restore
25+
run: dotnet restore src/GeoJSON.Net.sln
2226
- name: Build
23-
run: dotnet build --configuration Release --no-restore
27+
run: dotnet build src/GeoJSON.Net.sln --configuration Release --no-restore
2428
- name: Test
25-
run: dotnet test --no-restore --verbosity normal
29+
run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal

0 commit comments

Comments
 (0)