Skip to content

Commit

Permalink
Testing workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Medley committed May 29, 2024
1 parent c450d45 commit ac26db6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
16 changes: 12 additions & 4 deletions .github/workflows/e2e-confirmation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ac26db6

Please # to comment.