Merge pull request #67 from blinklabs-io/dependabot/go_modules/github… #107
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
# This file was copied from the following URL and modified: | |
# https://github.com/golangci/golangci-lint-action/blob/master/README.md#how-to-use | |
name: golangci | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.20.x] | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.53.3 # current version at time of commit | |
args: --timeout 10m | |
only-new-issues: true | |
- name: go-test | |
run: go test ./... |