From 5e1a1b9e6b68a15c27b7846e053cc53a1a6e19d6 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Thu, 4 Jan 2024 11:22:29 +0100 Subject: [PATCH 1/3] Github Actions: run on all pushes and PRs * and add a manual trigger --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f99d7fc0..73c3fcec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: From 8106de07affee49c1b095b17ff6e1d7a58c45460 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Thu, 4 Jan 2024 11:31:08 +0100 Subject: [PATCH 2/3] Github Actions: make all dotnet commands work by adding the sln file * previously one got errors like this: MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73c3fcec..24378781 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,8 +20,8 @@ jobs: with: dotnet-version: 3.1.301 - 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 From 1c730f82fdf843ab38ddab65159e2e67cb77a06b Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Thu, 4 Jan 2024 12:13:36 +0100 Subject: [PATCH 3/3] Github Actions: install .NET 5.0 * in addition to .NET Core 3.1 * and use the latest version of the 'setup-dotnet' action --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 24378781..efbaf8cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,9 +16,11 @@ 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 src/GeoJSON.Net.sln - name: Build