Skip to content

Commit

Permalink
chore: Swap out integration test in release pipeline (#2981)
Browse files Browse the repository at this point in the history
* chore: swap out integration in release pipeline

---------

Signed-off-by: Sarah Christoff <[email protected]>
  • Loading branch information
schristoff authored Feb 5, 2024
1 parent a02a8ae commit 8bb804e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 29 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/build_pipelinesrelease_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/integ-reuseable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
33 changes: 30 additions & 3 deletions .github/workflows/porter-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
paths-ignore:
- 'docs/**'

workflow_call:
inputs:
registry:
type: string
required: false
default: ghcr.io

env:
GOVERSION: 1.20.7

Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 8bb804e

Please sign in to comment.