Run make test on CI #125
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
name: e2e-tests | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1.4.0 | |
- name: Install kuttl | |
run: | | |
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.12.1/kubectl-kuttl_0.12.1_linux_x86_64 | |
chmod +x /usr/local/bin/kubectl-kuttl | |
- name: Install CRDs | |
run: make install | |
- name: Install Go | |
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 | |
with: | |
go-version: 1.20.x | |
- name: Running operator and Tests | |
env: | |
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }} | |
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }} | |
run: | | |
go run main.go & | |
sleep 30s | |
make e2e |