Skip to content

Implement E2E Testing #155

Implement E2E Testing

Implement E2E Testing #155

Workflow file for this run

name: Vercel Preview

Check failure on line 1 in .github/workflows/preview.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/preview.yml

Invalid workflow file

(Line: 11, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VERCEL_TOKEN && secrets.VERCEL_ORG_ID && secrets.VERCEL_PROJECT_ID
on:
pull_request:
branches: [ "**" ]
jobs:
deploy-preview:
runs-on: ubuntu-latest
# Only run if Vercel secrets are configured
if: ${{ secrets.VERCEL_TOKEN && secrets.VERCEL_ORG_ID && secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
env:
NEXT_TELEMETRY_DISABLED: 1
run: npm run build
- name: Deploy to Vercel (Preview)
uses: vercel/action@v1
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: .
alias-domains: ''
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}