Skip to content

workflows: update the flag for the test commands (#13) #27

workflows: update the flag for the test commands (#13)

workflows: update the flag for the test commands (#13) #27

Workflow file for this run

name: Goredis Pull Request Check
on:
pull_request:
paths:
- 'goredis/**'
- '.github/workflows/goredis.yml'
push:
paths:
- 'goredis/**'
- '.github/workflows/goredis.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd goredis && go build -v ./...
- name: Test
run: cd goredis && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./goredis/coverage.out
flags: goredis
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}