forked from kubernetes-csi/csi-driver-nfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mayank Shah <[email protected]>
- Loading branch information
1 parent
21db7fa
commit 80e19e9
Showing
3 changed files
with
46 additions
and
28 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,37 @@ | ||
name: E2E Tests | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
test: | ||
name: E2E Tests | ||
runs-on: ubuntu-latest | ||
env: | ||
REGISTRY: k8s.gcr.io/sig-storage | ||
IMAGE_VERSION: ci-build | ||
IMAGE_NAME: nfsplugin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
- name: Build image | ||
run: | | ||
make build | ||
docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_VERSION . | ||
- uses: engineerd/[email protected] | ||
name: Setting up KinD cluster | ||
with: | ||
version: "v0.9.0" | ||
- name: Push image to KinD | ||
run: | | ||
kind load docker-image --name=kind $REGISTRY/$IMAGE_NAME:$IMAGE_VERSION | ||
- name: Run E2E Tests | ||
run: | | ||
make e2e-test | ||
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
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