github.com/hdt3213/godis@v1.2.9/.github/workflows/coverall.yml (about) 1 # This workflow will build a golang project 2 # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 4 name: Go 5 6 on: 7 push: 8 branches: [ "master", "github-actions" ] 9 pull_request: 10 branches: [ "master" ] 11 workflow_dispatch: 12 13 14 jobs: 15 16 build: 17 runs-on: ubuntu-latest 18 steps: 19 - uses: actions/checkout@v3 20 21 - uses: zhulik/redis-action@1.1.0 22 with: 23 redis version: '5' 24 number of databases: 16 25 26 - uses: actions/setup-go@v3 27 with: 28 go-version: '1.19' 29 - run: go test -v -coverprofile=profile.cov ./... 30 31 - uses: shogo82148/actions-goveralls@v1 32 with: 33 path-to-profile: profile.cov