Skip to content

Commit 966ce43

Browse files
authored
.github/workflows: Separate out the e2e jobs into workflows (#2158)
* .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]> * .github/workflows: Add the 'ci' workflow name to all e2e-related jobs Signed-off-by: timflannagan <[email protected]>
1 parent b849eb7 commit 966ce43

File tree

7 files changed

+78
-53
lines changed

7 files changed

+78
-53
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: ci
2+
on:
3+
pull_request:
4+
paths:
5+
- '**'
6+
- '!doc/contributors/**'
7+
- '!doc/design/**'
8+
jobs:
9+
image:
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: ci
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+
e2e-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: ci
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+
e2e-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/e2e-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: e2e-tests
1+
name: ci
22
on:
33
push:
44
branches:
@@ -8,7 +8,7 @@ on:
88
- '**'
99
- '!doc/**'
1010
jobs:
11-
run-e2e-tests:
11+
e2e-tests:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/test-scripts.yml

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

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: unit
1+
name: ci
22
on:
33
push:
44
branches:

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: verify
1+
name: ci
22
on:
33
push:
44
branches:

0 commit comments

Comments
 (0)