Skip to content

Commit 41826b5

Browse files
committed
.github/workflows: Separate out the e2e jobs into workflows
Update the .github/workflows/test-scripts.yml GH action workflow and move all the jobs listed there into separate workflows. This allows us to retest a single workflow at a time as a workaround to GH not allowing you to retest individual jobs in a workflow. Signed-off-by: timflannagan <[email protected]>
1 parent 7529f75 commit 41826b5

File tree

4 files changed

+64
-43
lines changed

4 files changed

+64
-43
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: upstream-tests
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
jobs:
9+
image-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
- name: Build the container image
15+
uses: docker/build-push-action@v1
16+
with:
17+
repository: operator-framework/olm
18+
dockerfile: ./Dockerfile
19+
push: false

.github/workflows/e2e-kind.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: e2e
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
jobs:
9+
run-local-kind:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install kind
14+
run: |
15+
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"
16+
chmod +x kind
17+
sudo mv kind /bin/
18+
- name: Create kind cluster
19+
run: |
20+
kind create cluster
21+
kind export kubeconfig
22+
- name: Run e2e tests
23+
run: make run-local

.github/workflows/e2e-minikube.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: e2e
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
jobs:
9+
run-local-minikube:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install minikube
14+
run: |
15+
sudo apt-get install conntrack
16+
curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')"
17+
chmod +x minikube
18+
sudo mv minikube /bin/
19+
- name: Setup minikube
20+
run: minikube config set vm-driver docker
21+
- name: Run e2e tests
22+
run: make run-local

.github/workflows/test-scripts.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)