Update .golangci.yaml #186
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: test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Set up golangci-lint | |
run: sudo snap install golangci-lint --classic | |
- name: Get YCSB | |
uses: wei/wget@v1 | |
with: | |
args: https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-0.17.0.tar.gz | |
- name: Set up YCSB | |
run: tar xvfx ycsb-0.17.0.tar.gz | |
- name: Test | |
run: env CGO_ENABLED=0 YCSB_ROOT=`pwd`/ycsb-0.17.0 make test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: redis-cover.out |