Skip to content

.github/workflows: Separate out the e2e jobs into workflows #2158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ci
on:
pull_request:
paths:
- '**'
- '!doc/contributors/**'
- '!doc/design/**'
jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Build the container image
uses: docker/build-push-action@v1
with:
repository: operator-framework/olm
dockerfile: ./Dockerfile
push: false
28 changes: 28 additions & 0 deletions .github/workflows/e2e-kind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci
on:
pull_request:
paths:
- '**'
- '!doc/contributors/**'
- '!doc/design/**'
schedule:
- cron: '0 0 * * *' # daily to pick up releases
jobs:
e2e-kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '~1.16'
- name: Install kind
run: |
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')"
chmod +x kind
sudo mv kind /bin/
- name: Create kind cluster
run: |
kind create cluster
kind export kubeconfig
- name: Run e2e tests
run: make run-local
27 changes: 27 additions & 0 deletions .github/workflows/e2e-minikube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci
on:
pull_request:
paths:
- '**'
- '!doc/contributors/**'
- '!doc/design/**'
schedule:
- cron: '0 0 * * *' # daily to pick up releases
jobs:
e2e-minikube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '~1.16'
- name: Install minikube
run: |
sudo apt-get install conntrack
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')"
chmod +x minikube
sudo mv minikube /bin/
- name: Setup minikube
run: minikube config set vm-driver docker
- name: Run e2e tests
run: make run-local
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e-tests
name: ci
on:
push:
branches:
Expand All @@ -8,7 +8,7 @@ on:
- '**'
- '!doc/**'
jobs:
run-e2e-tests:
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/test-scripts.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit
name: ci
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: verify
name: ci
on:
push:
branches:
Expand Down