From f8d1ef7b14a7eb65352726522115aa15d514b246 Mon Sep 17 00:00:00 2001 From: Jens Teichert Date: Sat, 12 Oct 2024 16:32:21 +0200 Subject: [PATCH] add matrix test build --- .github/workflows/build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8164370..39c09b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,9 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + mongodb-version: [ 6.0, 7.0, 8.0 ] steps: - uses: actions/checkout@v2 - name: Setup Go @@ -25,7 +28,7 @@ jobs: - name: Start MongoDB uses: supercharge/mongodb-github-action@1.8.0 with: - mongodb-version: 6.0 + mongodb-version: ${{ matrix.mongodb-version }} - name: Run tests run: go test -v -covermode=count -coverprofile=coverage.out @@ -37,10 +40,4 @@ jobs: uses: coverallsapp/github-action@v1.1.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: coverage.lcov - -# - name: Upload Go test results -# uses: actions/upload-artifact@v3 -# with: -# name: Go-results-${{ matrix.go-version }} -# path: TestResults-${{ matrix.go-version }}.json \ No newline at end of file + path-to-lcov: coverage.lcov \ No newline at end of file