diff --git a/.github/workflows/theBuild.yml b/.github/workflows/theBuild.yml
index 56bb1e2..6f6967b 100644
--- a/.github/workflows/theBuild.yml
+++ b/.github/workflows/theBuild.yml
@@ -1,6 +1,10 @@
-name: BuildAndTest
+name: Build and Test
-on: [push]
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
jobs:
build:
@@ -8,14 +12,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Setup .NET Core SDK
- uses: actions/setup-dotnet@v1.7.2
- with:
- dotnet-version: 5.0.100
- - uses: actions/checkout@v1
- - name: Build with dotnet
+ - uses: actions/checkout@v3
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: |
+ 8.0.x
+ - name: Restore dependencies
working-directory: ./src
- run: dotnet build --configuration Release
- - name: Run Tests
+ run: dotnet restore
+ - name: Build
working-directory: ./src
- run: dotnet test
+ run: dotnet build --no-restore
+ - name: Test
+ working-directory: ./src
+ run: dotnet test --no-build --verbosity normal
diff --git a/src/WilderMinds.MetaWeblog/WilderMinds.MetaWeblog.csproj b/src/WilderMinds.MetaWeblog/WilderMinds.MetaWeblog.csproj
index 1db2668..25043e6 100644
--- a/src/WilderMinds.MetaWeblog/WilderMinds.MetaWeblog.csproj
+++ b/src/WilderMinds.MetaWeblog/WilderMinds.MetaWeblog.csproj
@@ -18,10 +18,11 @@
false
false
false
- 5.1.1
- True
- 5.1.1.0
- 5.1.1.0
+ 5.1.2
+ False
+ 5.1.2.0
+ 5.1.2.0
+ true