chore: use commons http.Client for alertmanager #1410
Workflow file for this run
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
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
paths: | |
- "**.go" | |
- "Makefile" | |
- "**.yaml" | |
- "**.yml" | |
- "test/**" | |
pull_request: | |
paths: | |
- "**.go" | |
- "Makefile" | |
- "**.yaml" | |
- "**.yml" | |
- "test/**" | |
name: Operator E2E Test | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
.bin | |
key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }} | |
restore-keys: | | |
cache- | |
- run: make bin | |
- name: Set up Kind & Kubectl | |
uses: helm/[email protected] | |
with: | |
version: v0.21.0 | |
cluster_name: kind-test | |
- name: Wait for cluster to be ready | |
run: | | |
kubectl wait --for=condition=Ready nodes --all --timeout=300s | |
- name: Test | |
run: ./test/e2e-operator.sh |