fix(ci): use inputs.base_url directly (default already declared); drop double-quote expression
This commit is contained in:
26
.github/workflows/smoke.yml
vendored
26
.github/workflows/smoke.yml
vendored
@@ -1,14 +1,7 @@
|
|||||||
# smoke.yml
|
# smoke.yml — Playwright smoke tests against staging.peptiderepo.com
|
||||||
#
|
#
|
||||||
# Playwright smoke tests against staging.peptiderepo.com
|
# Called by other repos via workflow_call as a deploy gate.
|
||||||
#
|
# Secrets required: STAGING_WP_ADMIN_USER, STAGING_WP_ADMIN_PASSWORD
|
||||||
# Triggers:
|
|
||||||
# - Manually via workflow_dispatch (run before any prod deploy)
|
|
||||||
# - Called by other repos via workflow_call (deploy gates)
|
|
||||||
#
|
|
||||||
# Secrets required (set in GitHub repo Settings -> Secrets -> Actions):
|
|
||||||
# STAGING_WP_ADMIN_USER -- WordPress admin username on staging
|
|
||||||
# STAGING_WP_ADMIN_PASSWORD -- WordPress admin password on staging
|
|
||||||
|
|
||||||
name: Smoke Tests (Staging)
|
name: Smoke Tests (Staging)
|
||||||
|
|
||||||
@@ -16,17 +9,16 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
base_url:
|
base_url:
|
||||||
description: "Target URL (defaults to staging)"
|
description: 'Target URL (defaults to staging)'
|
||||||
required: false
|
required: false
|
||||||
default: "https://staging.peptiderepo.com"
|
default: 'https://staging.peptiderepo.com'
|
||||||
|
|
||||||
# Allow other repos to call this workflow as a deploy gate
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
base_url:
|
base_url:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: "https://staging.peptiderepo.com"
|
default: 'https://staging.peptiderepo.com'
|
||||||
secrets:
|
secrets:
|
||||||
STAGING_WP_ADMIN_USER:
|
STAGING_WP_ADMIN_USER:
|
||||||
required: true
|
required: true
|
||||||
@@ -46,8 +38,8 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: '22'
|
||||||
cache: "npm"
|
cache: 'npm'
|
||||||
cache-dependency-path: package-lock.json
|
cache-dependency-path: package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -58,7 +50,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run smoke tests
|
- name: Run smoke tests
|
||||||
env:
|
env:
|
||||||
BASE_URL: ${{ inputs.base_url || "https://staging.peptiderepo.com" }}
|
BASE_URL: ${{ inputs.base_url }}
|
||||||
WP_ADMIN_USER: ${{ secrets.STAGING_WP_ADMIN_USER }}
|
WP_ADMIN_USER: ${{ secrets.STAGING_WP_ADMIN_USER }}
|
||||||
WP_ADMIN_PASSWORD: ${{ secrets.STAGING_WP_ADMIN_PASSWORD }}
|
WP_ADMIN_PASSWORD: ${{ secrets.STAGING_WP_ADMIN_PASSWORD }}
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
|
|||||||
Reference in New Issue
Block a user