Skip to content

Commit

Permalink
chore: Update workflows to Go v1.16
Browse files Browse the repository at this point in the history
Closes: #514
Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed Jul 27, 2021
1 parent 604ee93 commit bd89626
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 35 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/create-docker-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ defaults:
working-directory: ./vmware-event-router

jobs:
modules:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
needs: modules
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source (this.development branch)
uses: actions/checkout@v2
- name: get the short commit ID
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/create-docker-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ defaults:
working-directory: ./vmware-event-router

jobs:
modules:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
needs: modules
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source (this.release branch)
uses: actions/checkout@v2
- name: get the version from ref without prefixes
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/create-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ defaults:
working-directory: ./vmware-event-router

jobs:
modules:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
needs: modules
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source (master branch)
uses: actions/checkout@v2
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/router-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source
uses: actions/checkout@v2
- name: run integration tests with OpenFaaS
run: hack/run_integration_tests.sh


4 changes: 4 additions & 0 deletions .github/workflows/router-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/router-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source
uses: actions/checkout@v2
- name: run unit tests
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/router-verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
modules:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
Expand All @@ -31,6 +35,10 @@ jobs:
runs-on: ubuntu-latest
needs: modules
steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout source
uses: actions/checkout@v2
- name: verify Docker build (no push)
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/router-verify-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
timeout-minutes: 15

steps:
- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- name: Setup ko
uses: imjasonh/setup-ko@v0.4 # will install latest ko version
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
timeout-minutes: 15

steps:
- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- name: Setup ko
uses: imjasonh/setup-ko@v0.4 # will install latest ko version
Expand Down

0 comments on commit bd89626

Please sign in to comment.