Skip to content

Commit

Permalink
Create e2e.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
castlemilk authored Dec 10, 2019
1 parent 5629f1b commit 61d7ac2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/e2e.yml
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

0 comments on commit 61d7ac2

Please sign in to comment.