更新点金计划SDK:点金计划管理API新增支付场景字段 #221
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.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: 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.16" | |
- name: staticcheck | |
run: | | |
go get -u 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.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 ./... |