forked from Xconfess/Xconfess
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.33 KB
/
Copy pathdeployed-smoke.yml
File metadata and controls
52 lines (45 loc) · 1.33 KB
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
name: Deployed Smoke Test
on:
workflow_dispatch:
inputs:
frontend_url:
description: Frontend URL to test
required: true
default: https://xconfess.vercel.app
type: string
backend_url:
description: Backend URL to test
required: true
default: https://xconfess-backend.onrender.com
type: string
run_registration_mutation:
description: Create a disposable registration during the smoke test
required: true
default: false
type: boolean
permissions:
contents: read
jobs:
smoke:
name: Test deployed endpoints
runs-on: ubuntu-latest
timeout-minutes: 10
env:
SMOKE_FRONTEND_URL: ${{ inputs.frontend_url }}
SMOKE_BACKEND_URL: ${{ inputs.backend_url }}
SMOKE_RUN_MUTATION: ${{ inputs.run_registration_mutation }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- name: Use repository npm version
run: npm install --global npm@10.9.3
- name: Install dependencies
run: npm ci --include=optional --no-audit --no-fund
- name: Run deployed smoke test
run: npm run deploy:smoke