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 13, 2021
1 parent 8813c3d commit 020b7b6
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions .github/workflows/release.yaml
Expand Up @@ -480,25 +480,27 @@ jobs:
# asset_content_type: application/gzip


# copy_nightly:
# if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
# runs-on: ubuntu-18.04
## needs: [build_airgap]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Copy assets
# uses: ./actions/copy-assets
# env:
# GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
# with:
# srcReleaseTag: ${{ github.ref_name }}
# dstReleaseTag: "v0.0.0-nightly"

regression_test:
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
needs: copy_nightly
name: Run regression testing
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
# runs-on: ubuntu-18.04
runs-on: ubuntu-latest
# needs: [build_airgap]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Copy assets
uses: ./actions/copy-assets
env:
GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
with:
srcReleaseTag: ${{ github.ref_name }}
dstReleaseTag: "v0.0.0-nightly"


# if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly')
# needs: copy_nightly

# uses: replicatedhq/kots/.github/workflows/regression.yaml@standalone-regression
# with:
# version_tag_old: ${{ needs.copy_nightly.steps.get_latest_tag.outputs.release }}
Expand All @@ -509,26 +511,26 @@ jobs:
# TF_VAR_testim_token: ${{ secrets.TESTIM_ACCESS_TOKEN }}
# E2E_GH_PAT: ${{ secrets.E2E_GH_PAT }}

runs-on: ubuntu-latest
steps:
- name: Get latest release tag
id: get_latest_tag
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: prerelease, draft
# runs-on: ubuntu-latest
# steps:
- name: Get latest release tag
id: get_latest_tag
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: prerelease, draft

- name: blah
- name: Start test
# uses: replicatedhq/kots/.github/workflows/regression.yaml@standalone-regression
uses: replicatedhq/kots/.github/workflows/regression.yaml@standalone-regression
with:
version_tag_old: ${{ steps.get_latest_tag.outputs.release }}
version_tag_new: ${{ github.ref_name }}
uses: ./.github/workflows/regression.yaml
with:
version_tag_old: ${{ steps.get_latest_tag.outputs.release }}
version_tag_new: ${{ github.ref_name }}
# secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.E2E_TESTIM_AWS_ACCESS_KEY_ID }}
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 }}
AWS_ACCESS_KEY_ID: ${{ secrets.E2E_TESTIM_AWS_ACCESS_KEY_ID }}
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 }}

# start_kgrid_test:
# runs-on: ubuntu-18.04
Expand Down

0 comments on commit 020b7b6

Please sign in to comment.