[kit] add helper method http stub #103
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: Go | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.20', '1.21' ] | |
name: Set up Go ${{ matrix.go }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
run: | | |
go work init | |
go work use ./kit | |
go work use ./std/gateways/fasthttp | |
go work use ./std/gateways/fastws | |
go work use ./std/gateways/silverhttp | |
go work use ./std/clusters/rediscluster | |
go work use ./contrib | |
go work sync | |
go test -v -race -cover -covermode=atomic -coverprofile=coverage.out -count=1 \ | |
./kit/... \ | |
./std/gateways/fasthttp/... \ | |
./std/gateways/fastws/... \ | |
./std/gateways/silverhttp/... \ | |
./std/clusters/rediscluster/... | |
- name: Codecov KIT | |
uses: codecov/[email protected] | |
with: | |
files: ./coverage.out | |
verbose: true | |