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