Skip to content

Commit

Permalink
chore: update workflow and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 9, 2023
1 parent 8c13ec4 commit 825a50d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
version:
- ""
- "latest"
- "v1.51"
- "v1.51.2"
- "v1.53"
- "v1.53.2"
runs-on: ${{ matrix.os }}
permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ typings/

# Text editor files
.vscode/

# IntelliJ/WebStorm files
.idea
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.17'
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.29
# Require: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.53

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down Expand Up @@ -89,15 +89,17 @@ on:
- master
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
strategy:
matrix:
go: [1.17]
go: ['1.20']
os: [macos-latest, windows-latest]
name: lint
runs-on: ${{ matrix.os }}
Expand All @@ -110,8 +112,9 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29
# Require: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.53

# Optional: working directory, useful for monorepos
# working-directory: somedir

Expand Down

0 comments on commit 825a50d

Please sign in to comment.