Update golang Docker tag to v1.22.6 #762
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Execute automated checks | |
on: | |
- push | |
jobs: | |
# https://github.com/golangci/golangci-lint-action#how-to-use | |
lint: | |
name: Lint go code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # tag=v3 | |
- name: Lint go code with golangci-lint | |
uses: golangci/golangci-lint-action@b517f99ae23d86ecc4c0dec08dcf48d2336abc29 # tag=v3 | |
with: | |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | |
version: v1.43.0 | |
test: | |
name: Verify go test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # tag=v3 | |
- name: Setup golang | |
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # tag=v3 | |
with: | |
go-version: '1.17.0' | |
- name: Print go version | |
run: go version | |
- name: Execute go tests | |
run: go test -v ./... | |
tilt-ci-dev: | |
name: Verify tilt ci (development images) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # tag=v3 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@94729529f85113b88f4f819c17ce61382e6d8478 # renovate: tag=v1.2.0 | |
- name: Install tilt cli | |
uses: yokawasa/action-setup-kube-tools@c81bf94cddd6c3172e6f61aa7f5ad66a2b5db98d # renovate: tag=v0.8.0 | |
with: | |
setup-tools: | | |
tilt | |
tilt: 'v0.23.1' | |
- name: Verify tilt ci | |
run: | | |
timeout 600 tilt ci | |
tilt-ci-prod: | |
name: Verify tilt ci (production images) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # tag=v3 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@94729529f85113b88f4f819c17ce61382e6d8478 # renovate: tag=v1.2.0 | |
- name: Install tilt cli | |
uses: yokawasa/action-setup-kube-tools@c81bf94cddd6c3172e6f61aa7f5ad66a2b5db98d # renovate: tag=v0.8.0 | |
with: | |
setup-tools: | | |
tilt | |
tilt: 'v0.23.1' | |
- name: Verify tilt ci | |
run: | | |
PROD=1 timeout 600 tilt ci |