Skip to content

chore: fix nits

chore: fix nits #55

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: Build
run: make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: Test
run: make test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: lint-go
uses: golangci/[email protected]
with:
version: latest
artifacts:
name: Artifacts
uses: ./.github/workflows/artifacts.yaml
with:
publish: false
permissions:
contents: read
packages: write
e2e-test:
name: E2E Test
runs-on: ubuntu-latest
needs: artifacts
strategy:
matrix:
KIND_K8S_VERSION: ["v1.29.0", "v1.30.0", "v1.31.0"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: Download Docker image
uses: actions/download-artifact@v4
with:
name: Kube-Pod-Autocomplete Image
- name: Download Helm chart
uses: actions/download-artifact@v4
with:
name: Kube-Pod-Autocomplete Helm-Chart
- name: Install Kubectl
run: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- name: Run E2E tests
run: make test-e2e
env:
KIND_K8S_VERSION: ${{ matrix.KIND_K8S_VERSION }}
LOAD_IMAGE_ARCHIVE: ${{ github.workspace }}/image.tar
VERSION: ${{ needs.artifacts.outputs.container-image-tag }}
HELM_CHART: ${{ github.workspace }}/kube-pod-autocomplete-0.0.0.tgz