Skip to content

Commit

Permalink
cleaup
Browse files Browse the repository at this point in the history
  • Loading branch information
fenio committed Jun 28, 2024
1 parent 0c6cf8b commit aaa7a84
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22'

Expand Down Expand Up @@ -48,41 +48,26 @@ jobs:
- name: Create Kubernetes cluster
run: kind create cluster --wait 5m

- name: Apply test PVC and pod
- name: Prepare test PVCs and PODs
run: |
kubectl apply -f pkg/plugin/test/pvc.yaml
kubectl apply -f pkg/plugin/test/test-pod.yaml
- name: Install sshfs
- name: Install SSHFS
run: sudo apt-get update && sudo apt-get install -y sshfs --no-install-recommends --no-install-suggests

- name: Build pv-mounter
run: |
make bin
run: make bin

- name: Create mountpoint
run: mkdir foo

- name: Check PVC status
run: |
kubectl get pvc
kubectl get pvc test-pvc -o yaml
- name: Check pod status
run: kubectl get pod test-pod -o yaml

# - name: Wait for PVC to be bound
# run: kubectl wait --for=condition=Bound pvc/test-pvc --timeout=2m

- name: Run tests
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

0 comments on commit aaa7a84

Please sign in to comment.