Skip to content

[Snyk] Security upgrade alpine from latest to 3.18.5 #30

[Snyk] Security upgrade alpine from latest to 3.18.5

[Snyk] Security upgrade alpine from latest to 3.18.5 #30

Workflow file for this run

name: Kubectl integration tests
on:
push:
branches:
- main
pull_request:
jobs:
check-optional-tests:
name: Check if needs to run Kubectl tests
runs-on: ubuntu-latest
outputs:
trigger-kubectl: ${{steps.runkubectltest.outputs.triggered}}
steps:
- uses: khan/pull-request-comment-trigger@main
name: Check if test Kubectl
if: github.event_name == 'pull_request'
id: runkubectltest
with:
trigger: '/test-kubectl'
kube-tests:
name: Kubectl e2e tests
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
needs: check-optional-tests
if: github.ref == 'refs/heads/main' || needs.check-optional-tests.outputs.trigger-kubectl == 'true'
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go
- name: Setup docker CLI
run: |
curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz | tar gz
sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version
- name: Setup Kubectl tools
run: |
sudo apt-get install jq && jq --version
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.10.0/kind-linux-amd64 && chmod +x ./kind && sudo mv ./kind /usr/bin/ && kind version
curl -LO "https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl" && sudo mv kubectl /usr/bin/ && kubectl version --client
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
- name: Build for Kubectl e2e tests
env:
BUILD_TAGS: kubectl
run: make -f builder.Makefile cli
- name: Kubectl e2e Test
run: make e2e-kubectl