Skip to content

Commit

Permalink
Test with go v4 after adding golang lint before general lint
Browse files Browse the repository at this point in the history
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
  • Loading branch information
Shwetha-Acharya committed Jul 26, 2023
1 parent d02526c commit e2a3f7e
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit e2a3f7e

Please sign in to comment.