Skip to content

chore(deps): update dependency @types/node to v20.17.13 - autoclosed #203

chore(deps): update dependency @types/node to v20.17.13 - autoclosed

chore(deps): update dependency @types/node to v20.17.13 - autoclosed #203

name: CI
on:
pull_request:
branches: [main]
jobs:
test_prettier:
name: Test Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Dependencies
run: npm install
- name: Run the prettier tests
run: npm run prettier:fix
test_types:
name: Test Types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Dependencies
run: npm install
- name: Run the type tests
run: npm run test:type
test_unit:
name: Test Unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Dependencies
run: npm install
- name: Run the tests
run: npm run test:unit
wait_for_vercel:
name: Wait for vercel
runs-on: ubuntu-latest
outputs:
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
steps:
- name: Wait for Vercel preview deployment to be ready
uses: patrickedqvist/wait-for-vercel-preview@main
id: waitForVercelPreviewDeployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 120
test_e2e:
name: Test e2e
needs: wait_for_vercel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
env:
VERCEL_URL: ${{ needs.wait_for_vercel.outputs.preview_url }}
VERCEL_ENV: preview