Skip to content

Commit

Permalink
Adding standalone trigger for regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
syntastical committed Nov 12, 2021
1 parent fd21b94 commit 84322d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/regression.yaml
Expand Up @@ -176,7 +176,7 @@ jobs:
fi
terraform init -backend-config ${{ matrix.test.backend_config }}
./${{ matrix.test.terraform_script }} apply
terraform taint aws_instance.control_plane
terraform taint -allow-missing aws_instance.control_plane
terraform taint -allow-missing 'aws_instance.worker[0]'
- name: Run the test
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/release.yaml
Expand Up @@ -487,22 +487,23 @@ jobs:
runs-on: ubuntu-18.04
needs: [build_airgap]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get tags
id: get_tag
uses: ./actions/version-tag

- name: Copy assets
uses: ./actions/copy-assets
env:
GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
with:
srcReleaseTag: ${{ steps.get_tag.outputs.GIT_TAG }}
srcReleaseTag: ${{ env.GITHUB_REF_NAME }}
dstReleaseTag: "v0.0.0-nightly"

regression-test:
- name: Get latest tag
id: get_latest_tag
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: prerelease, draft

regression_test:
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
name: Run regression testing
runs-on: ubuntu-latest
steps:
Expand All @@ -512,6 +513,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.E2E_TESTIM_AWS_SECRET_ACCESS_KEY }}
TF_VAR_testim_token: ${{ secrets.TESTIM_ACCESS_TOKEN }}
E2E_GH_PAT: ${{ secrets.E2E_GH_PAT }}
version_tag_old: ${{ steps.get_latest_tag.outputs.release }}
version_tag_new: ${{ env.GITHUB_REF_NAME }}

start_kgrid_test:
runs-on: ubuntu-18.04
Expand Down

0 comments on commit 84322d5

Please sign in to comment.