From fa0882f306582c112d1fc9510c03ee8ed66d354d Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Fri, 1 Nov 2024 21:10:50 +0530 Subject: [PATCH] chore: fix checkout order --- .github/workflows/lint.yaml | 8 ++++---- .github/workflows/test.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 210c7c6..5cef9d4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -15,14 +15,14 @@ jobs: checks: runs-on: ubuntu-latest steps: - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: "go.mod" - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" - name: Run linter uses: golangci/golangci-lint-action@v6 with: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a4aaceb..4be296a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,13 +10,13 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: "go.mod" - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" - name: Run unit tests run: make test