Running Backstop Remote #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backstop Remote | |
run-name: Running Backstop Remote | |
on: | |
workflow_dispatch: | |
permissions: | |
checks: write | |
contents: write | |
pull-requests: write | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
NODE_VERSION: 20 | |
jobs: | |
backstop: | |
name: 📱 BackstopJS | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ inputs.env }} | |
env: | |
DEPLOY_ENV: ${{ inputs.env }} | |
steps: | |
- name: 𐂷 Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: dgrebb/dgrebb.com | |
ref: ${{ github.ref }} | |
token: ${{ github.token }} | |
fetch-depth: 1 | |
sparse-checkout: | | |
.github | |
_ci | |
- uses: dgrebb/ngrok-ssh@main | |
with: | |
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} | |
NGROK_CONFIG_FILE: ".github/.config/.ngrok.yml" | |
- run: cd _ci/backstop && ENV=$DEPLOY_ENV pnpm test.gh |