Skip to content

[WIP]refactor: Soft connect to cloudwego-contrib/cwgo-pkg #36

[WIP]refactor: Soft connect to cloudwego-contrib/cwgo-pkg

[WIP]refactor: Soft connect to cloudwego-contrib/cwgo-pkg #36

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
lint-and-ut:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Golangci Lint
# https://golangci-lint.run/
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Unit Test
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...