diff --git a/.github/labels.yml b/.github/labels.yml index 2543132..dfd3c30 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -55,3 +55,6 @@ - color: 50e061 description: "PR was tested by a team member" name: "tested" +- color: "8e7cc3" + description: "Runs regression tests" + name: "regression-tests" diff --git a/.github/workflows/trigger-regression-tests.yml b/.github/workflows/trigger-regression-tests.yml new file mode 100644 index 0000000..9833567 --- /dev/null +++ b/.github/workflows/trigger-regression-tests.yml @@ -0,0 +1,34 @@ +name: "Regression Tests" +run-name: "Regression Tests for ${{ github.head_ref || github.ref }} | ID: ${{ github.run_id }}-${{ github.run_attempt }}" + +on: + workflow_dispatch: + inputs: + keep_instances: + description: 'When should it keep instances created during tests?' + required: true + default: 'never' + type: choice + options: + - 'always' + - 'failure' + - 'never' + pull_request_target: + types: [labeled] + +jobs: + test: + uses: 4chain-ag/spv-wallet-regression/.github/workflows/run-regression-tests.yaml@main + with: + run_id: '${{ github.run_id }}-${{ github.run_attempt }}' + keep_instances: ${{ inputs.keep_instances }} + go_client_ref: ${{ github.head_ref || github.ref }} + run_js_client_tests: false + secrets: + MASTER_INSTANCE_URL: ${{ secrets.REG_MASTER_INSTANCE_URL }} + MASTER_INSTANCE_XPRIV: ${{ secrets.REG_MASTER_INSTANCE_XPRIV }} + BLOCK_HEADERS_SERVICE_URL: ${{ secrets.REG_BLOCK_HEADERS_SERVICE_URL }} + BLOCK_HEADERS_SERVICE_AUTH_TOKEN: ${{ secrets.REG_BLOCK_HEADERS_SERVICE_AUTH_TOKEN }} + ARGOCD_SERVER: ${{ secrets.REG_ARGOCD_SERVER }} + ARGOCD_USERNAME: ${{ secrets.REG_ARGOCD_USERNAME }} + ARGOCD_PASSWORD: ${{ secrets.REG_ARGOCD_PASSWORD }}