Skip to content

Merge pull request #570 from CrowdStrike/mhyson/sensor-update-policy #371

Merge pull request #570 from CrowdStrike/mhyson/sensor-update-policy

Merge pull request #570 from CrowdStrike/mhyson/sensor-update-policy #371

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.21.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/[email protected]
with:
cluster_name: operator-testing
- run: sudo rm -rf /usr/local/bin/kustomize
- run: make test-e2e