Skip to content

Commit

Permalink
fix: use valid yaml sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jan 11, 2024
1 parent c3f0331 commit dadd97f
Showing 1 changed file with 4 additions and 45 deletions.
49 changes: 4 additions & 45 deletions .github/workflows/operator-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,10 @@ on:
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 }}
test:
runs-on: ubuntu-latest
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
- uses: setup-go@v5
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.8.0
with:
cluster_name: operator-testing

- run: sudo rm -rf /usr/local/bin/kustomize
- run: make test-e2e
go-version: '1.20.x'

0 comments on commit dadd97f

Please sign in to comment.