-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Swap out integration test in release pipeline (#2981)
* chore: swap out integration in release pipeline --------- Signed-off-by: Sarah Christoff <[email protected]>
- Loading branch information
1 parent
a02a8ae
commit 8bb804e
Showing
3 changed files
with
37 additions
and
29 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 |
---|---|---|
|
@@ -91,34 +91,12 @@ jobs: | |
run: mage TestUnit | ||
shell: bash | ||
Validate-integration_test: | ||
env: | ||
GHCR_IOGETPORTER_DOCKER_REGISTRY: ${{inputs.registry}} | ||
GHCR_IOGETPORTER_DOCKER_USERNAME: getporterbot | ||
name: Integration Test | ||
needs: | ||
- Validate-build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ inputs.GOVERSION }}" | ||
- name: Download Bin | ||
uses: actions/[email protected] | ||
with: | ||
name: build-bin | ||
path: bin | ||
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent SetBinExecutable | ||
- name: Integration Test | ||
run: mage -v TestIntegration | ||
uses: "./.github/workflows/porter-integration.yml" | ||
with: | ||
registry: ${{inputs.registry}} | ||
Validate-smoke_test: | ||
name: Run smoke tests on | ||
needs: | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
test_name: | ||
type: string | ||
required: false | ||
registry: | ||
type: string | ||
required: false | ||
env: | ||
GOVERSION: 1.20.7 | ||
PORTER_INTEG_FILE: ${{inputs.test_name}}.go | ||
|
@@ -30,7 +33,7 @@ jobs: | |
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
registry: ${{inputs.registry}} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure Agent | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,13 @@ on: | |
paths-ignore: | ||
- 'docs/**' | ||
|
||
workflow_call: | ||
inputs: | ||
registry: | ||
type: string | ||
required: false | ||
default: ghcr.io | ||
|
||
env: | ||
GOVERSION: 1.20.7 | ||
|
||
|
@@ -14,83 +21,103 @@ jobs: | |
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: archive_test | ||
registry: ${{inputs.registry}} | ||
build_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: build_test | ||
registry: ${{inputs.registry}} | ||
cli_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: cli_test | ||
registry: ${{inputs.registry}} | ||
connection_nix_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: connection_nix_test | ||
registry: ${{inputs.registry}} | ||
copy_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: copy_test | ||
test_name: copy_tests | ||
registry: ${{inputs.registry}} | ||
dependenciesv1_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: dependenciesv1_test | ||
registry: ${{inputs.registry}} | ||
dependenciesv2_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: dependenciesv2_test | ||
registry: ${{inputs.registry}} | ||
driver_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: driver_test | ||
registry: ${{inputs.registry}} | ||
install_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: install_test | ||
registry: ${{inputs.registry}} | ||
invoke_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: invoke_test | ||
registry: ${{inputs.registry}} | ||
lint_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: lint_test | ||
registry: ${{inputs.registry}} | ||
migration_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: migration_test | ||
registry: ${{inputs.registry}} | ||
outputs_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: outputs_test | ||
registry: ${{inputs.registry}} | ||
publish_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: publish_test | ||
registry: ${{inputs.registry}} | ||
pull_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: pull_test | ||
registry: ${{inputs.registry}} | ||
registry_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: registry_integration_test | ||
registry: ${{inputs.registry}} | ||
schema_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: schema_test | ||
registry: ${{inputs.registry}} | ||
sensitive_data_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: sensitive_data_test | ||
registry: ${{inputs.registry}} | ||
suppress_output_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: suppress_output_test | ||
registry: ${{inputs.registry}} | ||
telemetry_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: telemetry_test | ||
# Reusable workflows only supports 20 jobs | ||
registry: ${{inputs.registry}} | ||
# Reusable workflows only supports 20 jobs | ||
uninstall_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -110,7 +137,7 @@ jobs: | |
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
registry: ${{inputs.registry}} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure Agent | ||
|