diff --git a/.github/workflows/operator-deployment.yml b/.github/workflows/operator-deployment.yml index 508d2ad7..76904fd5 100644 --- a/.github/workflows/operator-deployment.yml +++ b/.github/workflows/operator-deployment.yml @@ -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'