Skip to content

Commit

Permalink
different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
fenio committed Jun 28, 2024
1 parent c617e27 commit 0c6cf8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 60 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ jobs:

- name: Build pv-mounter
run: |
go build -o pv-mounter ./cmd/plugin/main.go
ls -al
pwd
make bin
- name: Create mountpoint
run: mkdir /home/runner/work/pv-mounter/pv-mounter/foo
run: mkdir foo

- name: Check PVC status
run: |
Expand All @@ -77,9 +75,14 @@ jobs:
# run: kubectl wait --for=condition=Bound pvc/test-pvc --timeout=2m

- name: Run tests
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: go test -v ./pkg/plugin
run: |
./bin/pv-mounter mount default test-pvc foo
touch foo/dupa
ls -l foo/dupa
./bin/pv-mounter clean default test-pvc foo
# env:
# KUBECONFIG: ${{ secrets.KUBECONFIG }}
# run: go test -v ./pkg/plugin

- name: Delete pod and PVC
run: |
Expand Down
53 changes: 0 additions & 53 deletions pkg/plugin/mount_test.go

This file was deleted.

0 comments on commit 0c6cf8b

Please sign in to comment.