Files
kind/.github/actions/setup-env/action.yaml
Sean McGinnis f5c16ab072 Clean up GitHub Action definitions
This defines a local action for the common actions performed by most of
our workflows. This reduces duplication between them to make sure they
are consistent, and also make the workflow definitions more concise to
just the operations that are unique to the particular testing
activities.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2024-06-11 23:28:25 +00:00

35 lines
1005 B
YAML

name: "Setup environment"
description: "Performs common setup operations."
runs:
using: "composite"
steps:
- name: Get go version
id: golangversion
run: |
echo "go_version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Set up Go
id: go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ steps.golangversion.outputs.go_version }}
check-latest: true
- name: Install kind
run: sudo make install INSTALL_DIR=/usr/local/bin
shell: bash
- name: Install kubectl
run: |
curl -LO https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
shell: bash
- name: Enable ipv4 and ipv6 forwarding
run: |
sudo sysctl -w net.ipv6.conf.all.forwarding=1
sudo sysctl -w net.ipv4.ip_forward=1
shell: bash