-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from replicatedhq/laverya/run-two-integration…
…-tests run integration tests both in a cluster job and on the CLI
- Loading branch information
Showing
3 changed files
with
64 additions
and
4 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 |
---|---|---|
|
@@ -22,6 +22,31 @@ jobs: | |
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 | ||
run: make build | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Create Testdata in Cluster | ||
run: ./testing/init.sh | ||
|
||
- name: Run PVMigrate | ||
run: ./bin/pvmigrate --source-sc int-source --dest-sc int-dest | ||
|
||
- name: Validate Cluster End State | ||
run: ./testing/validate.sh | ||
|
||
integration-test-incluster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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 |
---|---|---|
|
@@ -45,11 +45,41 @@ jobs: | |
- name: Validate Cluster End State | ||
run: ./testing/validate.sh | ||
|
||
integration-test-incluster: | ||
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: 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 | ||
|
||
goreleaser: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- unit-test | ||
- integration-test | ||
- integration-test-incluster | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- name: Checkout | ||
|
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