1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-15 18:22:26 +08:00

upgrade action version

This commit is contained in:
houseme
2024-03-15 11:27:07 +08:00
parent eaa53b509b
commit efe99422a6
4 changed files with 20 additions and 20 deletions

View File

@@ -18,4 +18,4 @@ assignees: ''
**使用的版本** **使用的版本**
- SDK版本: [比如 v0.0.0] - SDK 版本[比如 v0.0.0]

View File

@@ -2,29 +2,29 @@ name: Go
on: on:
push: push:
branches: [ master,release-*,v2,feature/** ] branches: [ master,release-*,v2,feature/**,fix/** ]
pull_request: pull_request:
branches: [ master,release-*,v2,feature/** ] branches: [ master,release-*,v2,feature/**,fix/** ]
jobs: jobs:
golangci: golangci:
strategy: strategy:
matrix: matrix:
go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4' ] go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4','1.22' ]
name: golangci-lint name: golangci-lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setup Golang ${{ matrix.go-version }} - name: Setup Golang ${{ matrix.go-version }}
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v4
with: with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.52.2 version: v1.56.2
build: build:
name: Test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -42,12 +42,12 @@ jobs:
# strategy set # strategy set
strategy: strategy:
matrix: matrix:
go: [ '1.16','1.17','1.18','1.19','1.20','1.21' ] go: [ '1.16','1.17','1.18','1.19','1.20','1.21','1.22' ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
id: go id: go