Skip to content

refactor(tests): setup basic e2e test #72

refactor(tests): setup basic e2e test

refactor(tests): setup basic e2e test #72

Workflow file for this run

name: CI/CD πŸ€–πŸš€
on:
push:
branches:
- main
workflow_run:
workflows: ['Dependencies Update πŸ€–']
types:
- completed
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch πŸ€–
uses: actions/checkout@v3
- name: Setup Node πŸ€–
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm πŸ€–
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install dependencies πŸ€–
run: pnpm install
- name: Build the code πŸ€–
run: pnpm build:web
- name: Run unit tests πŸ€–
run: pnpm test:unit
CD:
needs: CI
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch πŸš€
uses: actions/checkout@v3
- name: Setup Node πŸš€
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm πŸš€
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install dependencies πŸš€
run: pnpm install
- name: Install Vercel CLI πŸš€
run: pnpm add vercel@latest
- name: Pull Vercel Environment Information πŸš€
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts πŸš€
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel πŸš€
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}