[Snyk] Fix for 1 vulnerabilities #409
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
name: E2E Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release-*' | |
pull_request: | |
branches: | |
- 'master' | |
- 'release-*' | |
jobs: | |
test-e2e: | |
name: Run end-to-end tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup k3s | |
run: | | |
curl -sfL https://get.k3s.io | sh - | |
sudo mkdir ~/.kube | |
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config | |
sudo chmod 755 ~/.kube/config | |
kubectl version | |
- uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Download cache | |
run: go mod download | |
- name: Install CRDs | |
run: | | |
kubectl apply -k manifests/crds | |
kubectl apply -f test/e2e/crds | |
- name: Start controller | |
run: make start-e2e & | |
- name: Run e2e tests | |
run: make test-e2e |