diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f8b982..4d4501f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,13 +15,3 @@ jobs: cache: 'npm' - run: npm ci - run: npm run prepublishOnly - - Confirmation: - # e2e_confirmation: - runs-on: ubuntu-latest - # environment: - # name: e2e-test-confirmation - needs: Build - steps: - - name: Await Manual Confirmation - run: echo "Please confirm you have manually run `npm run test:e2e` locally." diff --git a/.github/workflows/e2e-confirmation.yml b/.github/workflows/e2e-confirmation.yml index 40596f8..f5b814c 100644 --- a/.github/workflows/e2e-confirmation.yml +++ b/.github/workflows/e2e-confirmation.yml @@ -2,12 +2,20 @@ name: End-to-end Test Confirmation Workflow on: workflow_dispatch: + inputs: + confirm: + description: 'Confirm you have run `npm run test:e2e` locally (Yes/No)' + required: true + default: 'No' jobs: e2e_confirmation: runs-on: ubuntu-latest - environment: - name: e2e-test-confirmation steps: - - name: Await Manual Confirmation - run: echo "Please confirm you have manually run `npm run test:e2e` locally." + - name: Manual Confirmation + run: | + echo "You answered ${{ github.event.inputs.confirm }} to running `npm run test:e2e` locally." + if [ "${{ github.event.inputs.confirm }}" != "Yes" ]; then + echo "Confirmation not received. Exiting..." + exit 1 + fi