Skip to content

Feature/company search #8

Feature/company search

Feature/company search #8

name: Deploy to Vercel from pull request
on:
pull_request:
branches: [ develop, main, master ]
workflow_dispatch:
jobs:
deploy:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: preview
env:
JWT_ADMIN_EMAIL: ${{ vars.JWT_ADMIN_EMAIL }}
JWT_EMAIL: ${{ vars.JWT_EMAIL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Deploy to Vercel
run: echo "BASE_URL=$(npx vercel --token ${{ secrets.VERCEL_TOKEN }} --yes)" >> $GITHUB_ENV
- name: Output environment variables
run: |
echo "CI is $CI"
echo "BASE_URL is $BASE_URL"
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Test with Playwright
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30