From e2a3f7e2e8e9f6b2b0133929121d83df2b0f1159 Mon Sep 17 00:00:00 2001 From: Shwetha K Acharya Date: Tue, 25 Jul 2023 16:13:28 +0530 Subject: [PATCH] Test with go v4 after adding golang lint before general lint Signed-off-by: Shwetha K Acharya --- .github/workflows/ci.yaml | 42 ++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c0e1b4554..fa1b22cf67 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,6 +32,24 @@ defaults: shell: bash jobs: + golangci: + name: Golangci Lint + runs-on: ubuntu-20.04 + steps: + - name: Checkout source + uses: actions/checkout@v3 + + - name: Setup go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + + - name: GolangCI Lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.49.0 + + lint: name: Linters runs-on: ubuntu-20.04 @@ -58,22 +76,6 @@ jobs: git --no-pager diff git diff-index --quiet HEAD - golangci: - name: Golangci Lint - runs-on: ubuntu-20.04 - steps: - - name: Checkout source - uses: actions/checkout@v3 - - - name: Setup go - uses: actions/setup-go@v3 - with: - go-version: ${{ env.GO_VERSION }} - - - name: GolangCI Lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.49.0 unit-test: name: Unit tests @@ -83,7 +85,7 @@ jobs: uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -189,7 +191,7 @@ jobs: uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -232,7 +234,7 @@ jobs: uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -346,7 +348,7 @@ jobs: uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }}