doc: README 完善使用微信支付公钥验签的指引 #248
Workflow file for this run
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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: "Build for go v${{ matrix.go }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- "1.22" | |
- "1.21" | |
- "1.20" | |
- "1.19" | |
- "1.18" | |
- "1.17" | |
- "1.16" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: go build -v ./... | |
staticcheck: | |
name: "Static check" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.19" | |
- name: staticcheck | |
run: | | |
go install honnef.co/go/tools/cmd/[email protected] && | |
$HOME/go/bin/staticcheck ./... | |
- name: Revive Action | |
uses: morphy2k/[email protected] | |
with: | |
config: .revive.toml | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- "1.22" | |
- "1.21" | |
- "1.20" | |
- "1.19" | |
- "1.18" | |
- "1.17" | |
- "1.16" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Test | |
run: go test -gcflags=all=-l ./... |