Skip to content

支持微信支付公钥验签 (全新商户) #234

支持微信支付公钥验签 (全新商户)

支持微信支付公钥验签 (全新商户) #234

Workflow file for this run

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@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
staticcheck:
name: "Static check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.19"
- name: staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest &&
$HOME/go/bin/staticcheck ./...
- name: Revive Action
uses: morphy2k/[email protected]
with:
config: .revive.toml
test:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.19"
- "1.18"
- "1.17"
- "1.16"
- "1.15"
- "1.14"
- "1.13"
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 ./...