Skip to content

test for CustomCacheStrategy #65

test for CustomCacheStrategy

test for CustomCacheStrategy #65

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/[email protected]
with:
go-version: '^1.16'
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.16
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -coverprofile=coverage.xml -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml
flags: unittests
verbose: true