Skip to content

Commit 32c7773

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 32c7773

File tree

4 files changed

+74
-49
lines changed

4 files changed

+74
-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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: '~1.16'
18+
- name: Install kind
19+
run: |
20+
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')"
21+
chmod +x kind
22+
sudo mv kind /bin/
23+
- name: Create kind cluster
24+
run: |
25+
kind create cluster
26+
kind export kubeconfig
27+
- name: Run e2e tests
28+
run: make run-local

.github/workflows/e2e-minikube.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: '~1.16'
18+
- name: Install minikube
19+
run: |
20+
sudo apt-get install conntrack
21+
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')"
22+
chmod +x minikube
23+
sudo mv minikube /bin/
24+
- name: Setup minikube
25+
run: minikube config set vm-driver docker
26+
- name: Run e2e tests
27+
run: make run-local

.github/workflows/test-scripts.yml

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

0 commit comments

Comments
 (0)