Bump actions/checkout from 3 to 4 (#154) #265
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: golangci-lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
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.52.2 | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: test | |
run: "make test" | |
checkformat: | |
name: checkformat | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: checkformat | |
run: "make checkformat" |