Skip to content

docs: Graph/Trace/调用链路重设计 spec(方案 A,三期) #185

docs: Graph/Trace/调用链路重设计 spec(方案 A,三期)

docs: Graph/Trace/调用链路重设计 spec(方案 A,三期) #185

Workflow file for this run

name: CI
on:
push:
branches: [ master, v2 ]
pull_request:
branches: [ master, v2 ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run tests
run: go test ./... -count=1 -race -covermode=atomic -coverprofile=coverage.out
- name: Upload coverage profile
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
# example is an independent Go module; the root-module test run above never
# type-checks it, so it must be built and tested explicitly (issue #46).
- name: Build example module
working-directory: ./example
run: go build ./...
- name: Test example module
working-directory: ./example
run: go test ./... -count=1 -race
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
skip-go-installation: true
args: --timeout 5m --verbose