Skip to content

Commit

Permalink
Update workflows (#124)
Browse files Browse the repository at this point in the history
* Bump golangci/golangci-lint-action from v2.5.1 to v2.5.2

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v2.5.1 to v2.5.2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v2.5.1...5c56cd6)

Signed-off-by: dependabot[bot] <support@github.com>

* Update workflows to not use variables for versions

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
simongottschlag and dependabot[bot] committed Apr 5, 2021
1 parent bd22804 commit 64b7bdd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/coverage-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- main

env:
GO_VERSION: "1.16"

jobs:
coverage-main:
runs-on: ubuntu-latest
Expand All @@ -17,7 +14,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: coverage
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/kind-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

env:
NAME: "azad-kube-proxy"
GO_VERSION: "1.16"

jobs:
end-to-end:
Expand All @@ -21,7 +20,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Prepare
id: prep
run: |
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on: pull_request

env:
NAME: "azad-kube-proxy"
GO_VERSION: "1.16"
GOLANGCI_LINT_VERSION: "v1.35"

jobs:
lint:
Expand All @@ -18,11 +16,11 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.1
uses: golangci/golangci-lint-action@v2.5.2
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
version: v1.39

fmt:
runs-on: ubuntu-latest
Expand All @@ -32,7 +30,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Run fmt
run: |
make fmt
Expand All @@ -52,7 +50,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Run build
run: |
make build
Expand All @@ -65,7 +63,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Run test
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
Expand All @@ -89,7 +87,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Setup gosec
env:
GOSEC_VERSION: "2.6.1"
Expand Down Expand Up @@ -128,7 +126,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: coverage
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
types:
- published

env:
GO_VERSION: "1.16"

jobs:
release-plugin:
runs-on: ubuntu-latest
Expand All @@ -26,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: "^1.16.2"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
env:
Expand Down

0 comments on commit 64b7bdd

Please sign in to comment.