refactor(ci): Simplify CI workflow by removing unit-test job #2
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
name: E2E test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
env: | |
SKIP_TESTS: true | |
steps: | |
- name: Create k8s Kind Cluster | |
uses: helm/[email protected] | |
with: | |
cluster_name: cluster | |
- name: Set k8s provider | |
run: | | |
kubectl create namespace test-namespace | |
kubectl create secret generic mysecret -n test-namespace --from-literal=key=p4ssw0rd | |
kubectl create configmap myconfigmap -n test-namespace --from-literal=key=configValue | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: test | |
run: kubectl cluster-info |