Avoid redundant key parsing from the wrappedEntry. (#388) #385
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, pull_request] | |
env: | |
GO111MODULE: on | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
max-parallel: 2 | |
matrix: | |
go: ["stable", "oldstable"] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{matrix.go}} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Lint code | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
only-new-issues: true | |
- name: Test | |
run: | | |
go test -race -count=1 -coverprofile=queue.coverprofile ./queue | |
go test -race -count=1 -coverprofile=server.coverprofile ./server | |
go test -race -count=1 -coverprofile=main.coverprofile | |
- name: Upload coverage to codecov | |
run: | | |
go install github.com/modocache/[email protected] | |
echo "" > coverage.txt | |
gover | |
cat gover.coverprofile >> coverage.txt | |
bash <(curl -s https://codecov.io/bash) | |
- name: Build | |
run: go build -v . |