#81 fix index corruption (#82) #109
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.61.0 | |
args: -v | |
test: | |
strategy: | |
matrix: | |
go-version: [ '1.16.x', '1.17.x', '1.18.x', '1.19.x', '1.20.x' , '1.21.x' , '1.22.x' , '1.23.x' ] | |
os: [ ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go ${{ matrix.go-version }} on ${{ matrix.os }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run tests | |
run: go test -json -race ./... > TestResults-${{ matrix.os }}-${{ matrix.go-version }}.json | |
- name: Upload Go test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Go-results-${{ matrix.os }}-${{ matrix.go-version }} | |
path: TestResults-${{ matrix.os }}-${{ matrix.go-version }}.json | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go 1.23.x on ubuntu-latest | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.23.x' | |
- name: Setup Dependencies | |
run: | | |
go get golang.org/x/tools/cmd/cover | |
go get -t -v ./... | |
- name: Run Tests | |
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... | |
- uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: ./coverage.txt | |
flags: unittests | |
fail_ci_if_error: true | |
verbose: true |