-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled missing integration tests and added to the pipelines
Signed-off-by: David Gannon <[email protected]>
- Loading branch information
1 parent
3784a2c
commit 570d37e
Showing
24 changed files
with
350 additions
and
205 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 |
---|---|---|
|
@@ -93,124 +93,39 @@ jobs: | |
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: telemetry_test | ||
# Reusable workflows only supports 20 jobs | ||
uninstall_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: uninstall_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: uninstall_test | ||
signing_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: signing_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: signing_test | ||
upgrade_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: upgrade_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: upgrade_test | ||
plugin_log_level_test_integ: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: plugin_log_level_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: plugin_log_level_test | ||
porter_build_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: build_integration_test | ||
lifecycle_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: lifecycle_integration_test | ||
pkgmgmt_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: pkgmgmt_integration_test | ||
runner_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: runner_integration_test | ||
agent_integration_test: | ||
uses: getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main | ||
with: | ||
test_name: agent_integration_test |
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 |
---|---|---|
|
@@ -253,3 +253,153 @@ jobs: | |
PORTER_INTEG_FILE: plugin_log_level_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
porter_build_integration_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: build_integration_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
lifecycle_integration_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: lifecycle_integration_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
pkgmgmt_integration_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: pkgmgmt_integration_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
runner_integration_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: runner_integration_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash | ||
agent_integration_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "${{ env.GOVERSION }}" | ||
cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
- 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 build | ||
shell: bash | ||
- name: Integration Test | ||
env: | ||
PORTER_INTEG_FILE: agent_integration_test.go | ||
run: go run mage.go -v TestIntegration | ||
shell: bash |
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
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
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
Oops, something went wrong.