Skip to content

Merge pull request #57 from iliubinskii/feature/company-search #4

Merge pull request #57 from iliubinskii/feature/company-search

Merge pull request #57 from iliubinskii/feature/company-search #4

name: Deploy to Vercel from develop
on:
push:
branches: [ develop ]
workflow_dispatch:
jobs:
deploy:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: preview
env:
BASE_URL: ${{ vars.BASE_URL }}
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: npx vercel --token ${{ secrets.VERCEL_TOKEN }} --yes
- 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