From 1e634f86f832f9cec3e4610252333c4156f5ec98 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Tue, 19 Mar 2024 10:35:13 +0100 Subject: [PATCH] ci: checkout code before setup-go --- .github/workflows/push-pr-lint.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-pr-lint.yaml b/.github/workflows/push-pr-lint.yaml index 92e3ca24..97d3afe1 100644 --- a/.github/workflows/push-pr-lint.yaml +++ b/.github/workflows/push-pr-lint.yaml @@ -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