Skip to content

Commit 0f251a5

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 c20784d commit 0f251a5

File tree

4 files changed

+68
-49
lines changed

4 files changed

+68
-49
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: build
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
jobs:
9+
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: e2e
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
schedule:
9+
- cron: '0 0 * * *' # daily to pick up releases
10+
jobs:
11+
run-local-kind:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install kind
16+
run: |
17+
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')"
18+
chmod +x kind
19+
sudo mv kind /bin/
20+
- name: Create kind cluster
21+
run: |
22+
kind create cluster
23+
kind export kubeconfig
24+
- name: Run e2e tests
25+
run: make run-local

.github/workflows/e2e-minikube.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: e2e
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
schedule:
9+
- cron: '0 0 * * *' # daily to pick up releases
10+
jobs:
11+
run-local-minikube:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install minikube
16+
run: |
17+
sudo apt-get install conntrack
18+
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')"
19+
chmod +x minikube
20+
sudo mv minikube /bin/
21+
- name: Setup minikube
22+
run: minikube config set vm-driver docker
23+
- name: Run e2e tests
24+
run: make run-local

.github/workflows/test-scripts.yml

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

0 commit comments

Comments
 (0)