Skip to content

feat: Add function to check if cache contains a key #407

feat: Add function to check if cache contains a key

feat: Add function to check if cache contains a key #407

Workflow file for this run

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@v6
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/gover@v0.0.0-20171022184752-b58185e213c5
echo "" > coverage.txt
gover
cat gover.coverprofile >> coverage.txt
bash <(curl -s https://codecov.io/bash)
- name: Build
run: go build -v .