Merge pull request #549 from redhatrises/fix_artifactory_tag #356
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: Test Operator Deployment | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
pull_request_target: | |
types: [ labeled ] | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
env: | |
KIND_CLUSTER: operator-testing | |
FALCON_CLIENT_ID: ${{ secrets.FALCON_CLIENT_ID }} | |
FALCON_CLIENT_SECRET: ${{ secrets.FALCON_CLIENT_SECRET }} | |
jobs: | |
e2e: | |
name: e2e | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
go-version: [1.20.x] | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'pull_request_target' && | |
github.event.label.name == 'ok-to-test') | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
if: github.event_name != 'pull_request_target' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.sha}} | |
fetch-depth: 0 | |
if: github.event_name == 'pull_request_target' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt install libgpgme-dev libbtrfs-dev libdevmapper-dev | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1.10.0 | |
with: | |
cluster_name: operator-testing | |
- run: sudo rm -rf /usr/local/bin/kustomize | |
- run: make test-e2e |