-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.34 KB
/
backstop-remote.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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/actions
_ci
- name: 🛢 Install Dependencies
uses: ./.github/actions/install-cache-deps
with:
WORKSPACE_ROOT: _ci
- name: "Running Remote {ಠʖಠ}"
id: backstop
continue-on-error: true
run: cd _ci/backstop && npx pm2 start "ENV=$DEPLOY_ENV pnpm remote.gh"
# TODO: https://github.com/tmshkr/ngrok-ssh
# TODO: https://github.com/tmshkr/ngrok-ssh-example/blob/main/.github/workflows/debug.yml
- name: Run ngrok
uses: LuisBoto/[email protected]
with:
timeout: 1h
port: 3000
ngrok_authtoken: ${{ secrets.NGROK_AUTHTOKEN }}
tunnel_type: http