From 179700f3e45fa36f8c28f6b2e3d6a28b99fbdc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Mon, 3 Jul 2023 15:33:19 +0200 Subject: [PATCH] .github: Reorder steps to use module caching --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc95fa3..7baac03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: - master env: - GO_VERSION: "~1.20.4" + GO_VERSION: "~1.20.5" jobs: # Runs Golangci-lint on the source code @@ -19,15 +19,15 @@ jobs: name: ci-go-lint runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.x uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: golangci-lint uses: golangci/golangci-lint-action@v3 @@ -36,15 +36,15 @@ jobs: name: ci-unit-tests runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.x uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Run unit tests run: | make test @@ -54,15 +54,15 @@ jobs: name: ci-build runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.x uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Build mark run: | make build