fix(core): delete all before set for scalar postings (#9378) (#9380) #2544
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci-dgraph-code-coverage | |
| on: | |
| push: | |
| paths: | |
| - "**/*.go" | |
| - "**/go.mod" | |
| - "**/*.yml" | |
| - "**/Dockerfile" | |
| - "**/Makefile" | |
| branches: | |
| - main | |
| - release/** | |
| permissions: | |
| contents: read | |
| jobs: | |
| dgraph-code-coverage: | |
| runs-on: warp-ubuntu-latest-x64-4x | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 # defaults to SHA of event that triggered workflow | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Make Linux Build and Docker Image with coverage enabled | |
| run: make coverage-docker-image | |
| - name: Build Test Binary | |
| run: | | |
| #!/bin/bash | |
| # build the test binary | |
| cd t; go build . | |
| - name: Install gotestsum | |
| run: go install gotest.tools/gotestsum@latest | |
| - name: Clean Up Environment | |
| run: | | |
| #!/bin/bash | |
| # clean cache | |
| go clean -testcache | |
| # clean up docker containers before test execution | |
| cd t; ./t -r | |
| - name: Run Unit Tests | |
| run: | | |
| #!/bin/bash | |
| # go env settings | |
| export GOPATH=~/go | |
| # move the binary | |
| cp dgraph/dgraph ~/go/bin/dgraph | |
| # run the tests | |
| cd t; ./t --coverage=true --suite=unit,ldbc | |
| # clean up docker containers after test execution | |
| ./t -r | |
| # sleep | |
| sleep 5 | |
| - name: Install Goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: Send Coverage Results | |
| run: | |
| cd t && goveralls -repotoken ${{ secrets.COVERALLSIO_TOKEN }} -coverprofile=coverage.out |