-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5629f1b
commit 61d7ac2
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: E2ETest | ||
on: [pull_request] | ||
jobs: | ||
generate-policy: | ||
name: Generate OPA policy | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
- name: Install latest version of Kustomize | ||
run: | | ||
GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install 'jinja2-cli[yaml]' | ||
integration-tests: | ||
name: Create a Kind cluster | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
- name: Install latest version of Kind | ||
run: | | ||
GO111MODULE=on go get sigs.k8s.io/kind | ||
- name: Create Kind cluster | ||
run: | | ||
PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config kind-config.yaml | ||
- name: Run some sanity checks | ||
# kubectl is already installed on the Github Ubuntu worker | ||
run: | | ||
kubectl get nodes -o wide | ||
kubectl get pods --all-namespaces -o wide | ||
kubectl get services --all-namespaces -o wide |