From caf34e707c782a56eda042870551dafc5aad41f3 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 20 Apr 2024 20:21:13 -0400 Subject: [PATCH] Remove matrix for .NET versions --- .gitea/workflows/ci.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index aea6aa3..4bbfb82 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,7 +13,6 @@ jobs: strategy: matrix: - dotnet-version: [ "6.0", "7.0", "8.0" ] postgres-version: [ "12", "13", "14", "15", "latest" ] services: @@ -36,17 +35,20 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup .NET ${{ matrix.dotnet-version }}.x + - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: ${{ matrix.dotnet-version }}.x - #- name: Restore dependencies - # run: dotnet restore src/BitBadger.Documents.sln + dotnet-version: "8.0.x" + - name: Restore dependencies + run: dotnet restore src/BitBadger.Documents.sln - name: Build - # run: dotnet build src/BitBadger.Documents.sln --no-restore -f net${{ matrix.dotnet-version }} - run: dotnet build src/BitBadger.Documents.sln -f net${{ matrix.dotnet-version }} - - name: Test ${{ matrix.dotnet-version }} against PostgreSQL ${{ matrix.postgres-version }} - run: dotnet run --project src/Tests/BitBadger.Documents.Tests.fsproj -f net${{ matrix.dotnet-version }} + run: dotnet build src/BitBadger.Documents.sln --no-restore + - name: Test .NET 6 against PostgreSQL ${{ matrix.postgres-version }} + run: dotnet run --project src/Tests/BitBadger.Documents.Tests.fsproj -f net6.0 + - name: Test .NET 7 against PostgreSQL ${{ matrix.postgres-version }} + run: dotnet run --project src/Tests/BitBadger.Documents.Tests.fsproj -f net7.0 + - name: Test .NET 8 against PostgreSQL ${{ matrix.postgres-version }} + run: dotnet run --project src/Tests/BitBadger.Documents.Tests.fsproj -f net8.0 publish: runs-on: ubuntu-latest needs: build-and-test