Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Migrate k8s autodiscovery pipeline #2

Migrate k8s autodiscovery pipeline

Migrate k8s autodiscovery pipeline #2

name: k8s-autodiscovery-test
on:
schedule:
- cron: '0 18 * * *'
pull_request:
branches:
- main
paths:
- .stack-version
- 'e2e/_suites/kubernetes-autodiscover/**'
- .github/workflows/k8s-autodiscovery-test.yml
push:
branches:
- main
paths:
- .stack-version
- 'e2e/_suites/kubernetes-autodiscover/**'
- .github/workflows/k8s-autodiscovery-test.yml
jobs:
k8s-autodiscovery-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: get-go-version
name: Get Go version
run: echo "version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v4
with:
go-version: ${{ steps.get-go-version.outputs.version }}
- name: Create k8s Kind Cluster
uses: helm/[email protected]
# - name: Get Kind version
# run: |
# kind_version=$(kind --version | awk '{print $3}')
# echo "KIND_VERSION=${kind_version}" >> "$GITHUB_ENV"
- name: Run k8s autodiscovery test
working-directory: e2e/_suites/kubernetes-autodiscover
env:
OP_LOG_LEVEL: DEBUG
run: go test -timeout 90m -v