From b3ae912ed48a4d64fb3204fc7e4d2dc36b28cf78 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Thu, 27 Jun 2024 17:28:16 +0200 Subject: [PATCH] ci: checkout code before go setup --- .github/workflows/push-pr-lint.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-pr-lint.yaml b/.github/workflows/push-pr-lint.yaml index 5b3a5dc..6197340 100644 --- a/.github/workflows/push-pr-lint.yaml +++ b/.github/workflows/push-pr-lint.yaml @@ -5,27 +5,31 @@ jobs: lint-test: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go uses: actions/setup-go@v5 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.55.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@v5 with: go-version-file: go.mod - - - name: Checkout code - uses: actions/checkout@v4