From a211a9b739c8fbdc5e39b7fe0803632dbd55939b Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Thu, 7 Nov 2024 17:22:19 -0800 Subject: [PATCH 1/4] Get the build working --- Fauna.Test/Fauna.Test.csproj | 3 ++- Fauna/Fauna.csproj | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Fauna.Test/Fauna.Test.csproj b/Fauna.Test/Fauna.Test.csproj index 1769fdec..ee6e5653 100644 --- a/Fauna.Test/Fauna.Test.csproj +++ b/Fauna.Test/Fauna.Test.csproj @@ -16,6 +16,7 @@ + @@ -31,7 +32,7 @@ - net8.0 + net8.0;net9.0 enable enable true diff --git a/Fauna/Fauna.csproj b/Fauna/Fauna.csproj index 3b98dd9d..6e38716b 100644 --- a/Fauna/Fauna.csproj +++ b/Fauna/Fauna.csproj @@ -15,6 +15,9 @@ true true + + CS8524 + From c5146767140f03e614d65043e897bf7d1fc62b94 Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Thu, 7 Nov 2024 17:22:58 -0800 Subject: [PATCH 2/4] Add to GH action --- .github/workflows/pr_validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_validate.yml b/.github/workflows/pr_validate.yml index 9aeba2a0..f7de45a6 100644 --- a/.github/workflows/pr_validate.yml +++ b/.github/workflows/pr_validate.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - dotnet-version: [ '8.0.x' ] + dotnet-version: [ '8.0.x', '9.0.x' ] services: fauna: From 281ba32e9e5ba740999ffe96e36c2d16a3a79b93 Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Thu, 7 Nov 2024 17:31:31 -0800 Subject: [PATCH 3/4] Trying something --- .github/workflows/pr_validate.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_validate.yml b/.github/workflows/pr_validate.yml index f7de45a6..5483297f 100644 --- a/.github/workflows/pr_validate.yml +++ b/.github/workflows/pr_validate.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - dotnet-version: [ '8.0.x', '9.0.x' ] + dotnet-version: [ '8.0', '9.0' ] services: fauna: @@ -23,12 +23,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup dotnet ${{ matrix.dotnet-version }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version }} - name: Restore dependencies - run: dotnet restore + run: dotnet restore -f net${{ matrix.dotnet-version }} - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore -f net${{ matrix.dotnet-version }} - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test --no-build --verbosity normal -f net${{ matrix.dotnet-version }} From 9ff298d27eb3d707dbf475428e2f9450d4ebce06 Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Thu, 7 Nov 2024 17:33:29 -0800 Subject: [PATCH 4/4] . --- .github/workflows/pr_validate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_validate.yml b/.github/workflows/pr_validate.yml index 5483297f..bf9d9921 100644 --- a/.github/workflows/pr_validate.yml +++ b/.github/workflows/pr_validate.yml @@ -27,8 +27,8 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - name: Restore dependencies - run: dotnet restore -f net${{ matrix.dotnet-version }} + run: dotnet restore --framework net${{ matrix.dotnet-version }} - name: Build - run: dotnet build --no-restore -f net${{ matrix.dotnet-version }} + run: dotnet build --no-restore --framework net${{ matrix.dotnet-version }} - name: Test - run: dotnet test --no-build --verbosity normal -f net${{ matrix.dotnet-version }} + run: dotnet test --no-build --verbosity normal --framework net${{ matrix.dotnet-version }}