Skip to content

Commit

Permalink
Merge pull request #731 from yeatmanlab/enh/allow-manual-workflows
Browse files Browse the repository at this point in the history
Enh/Allow Manual Workflows
  • Loading branch information
ksmontville authored Aug 6, 2024
2 parents a927412 + 348676f commit 0f956da
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/cypress-participant-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Run Cypress Participant Tests

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
pr_branch:
description: 'Checkout this branch from the PR and execute CI/CD tests on it.'
required: true

concurrency:
group: ci-preview-tests-${{ github.ref }}-3
Expand Down Expand Up @@ -37,6 +43,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Use the branch from the PR if workflow is triggered manually, otherwise use the PR branch from the event
ref: ${{ github.event.inputs.pr_branch || github.event.pull_request.head.ref }}

- name: Cypress run
uses: cypress-io/github-action@v6
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cypress-partner-admin-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Run Cypress Partner Admin Tests

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
pr_branch:
description: 'Checkout this branch from the PR and execute CI/CD tests on it.'
required: true

concurrency:
group: ci-preview-tests-${{ github.ref }}-2
Expand Down Expand Up @@ -35,6 +41,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Use the branch from the PR if workflow is triggered manually, otherwise use the PR branch from the event
ref: ${{ github.event.inputs.pr_branch || github.event.pull_request.head.ref }}

- name: Cypress run
uses: cypress-io/github-action@v6
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/firebase-hosting-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and Deploy
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
pr_branch:
description: 'Checkout this branch from the PR and execute CI/CD tests on it.'
required: true

concurrency:
group: ci-preview-tests-${{ github.ref }}-1
Expand All @@ -17,6 +22,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
# Use the branch from the PR if workflow is triggered manually, otherwise use the PR branch from the event
ref: ${{ github.event.inputs.pr_branch || github.event.pull_request.head.ref }}
- name: 'vite build'
run: npm ci && npm run build
- name: Deploy to Firebase Hosting Channel
Expand Down
2 changes: 1 addition & 1 deletion roar-firebase-functions

0 comments on commit 0f956da

Please sign in to comment.