use pvmigrate rbac in integration tests #503
Workflow file for this run
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: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Test | |
run: make test | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
file: testing/Dockerfile | |
tags: ttl.sh/build-test/pvmigrate:latest | |
- name: Build | |
run: docker build --pull -f testing/Dockerfile -t . | |
- name: Create k8s Kind Cluster | |
uses: helm/[email protected] | |
- name: Create Testdata in Cluster | |
run: ./testing/init.sh | |
- name: Run PVMigrate | |
run: kubectl apply -f testing/yaml/migrate-job.yaml | |
- name: Validate Cluster End State | |
run: ./testing/validate.sh |