Skip to content

Commit

Permalink
Update the go-checks actions (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper authored Jun 11, 2024
1 parent 9628bae commit 51489cf
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/gochecks.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,30 @@
name: Checks

on:
pull_request:
branches:
- master

jobs:
Golangci-Lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.21"

- name: Install dependencies
run: |
go version
go install github.com/golangci/golangci-lint/cmd/[email protected]
go-version: "1.22"
- name: Run golangci-lint
run: |
golangci-lint run cmd/...
uses: golangci/golangci-lint-action@v6
with:
version: "latest"
args: "cmd/..."
Go-Fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.21"

go-version: "1.22"
- name: Run fmt
run: |
gofmt_files=$(gofmt -l cmd)
Expand Down

0 comments on commit 51489cf

Please sign in to comment.