Skip to content

Commit

Permalink
ci: checkout code before setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Mar 19, 2024
1 parent 1ee69b1 commit 1e634f8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,35 @@ jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Checkout code
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yml --timeout 2m
version: v1.56.2

- name: Test
run: go test ./...

build:
runs-on: ubuntu-latest
needs: [lint-test]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Checkout code
uses: actions/checkout@v4

- name: build binary
run: make build-linux

Expand Down

0 comments on commit 1e634f8

Please sign in to comment.