Skip to content

Commit

Permalink
add matrix test build
Browse files Browse the repository at this point in the history
  • Loading branch information
jensteichert committed Oct 12, 2024
1 parent 598e756 commit f8d1ef7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
path-to-lcov: coverage.lcov

0 comments on commit f8d1ef7

Please sign in to comment.