2022-12-30 16:40:15 +03:00
|
|
|
name: Unit Tests
|
2022-11-10 15:51:06 +03:00
|
|
|
on:
|
|
|
|
push:
|
2022-12-17 19:11:38 +03:00
|
|
|
branches: [master]
|
2022-11-10 15:51:06 +03:00
|
|
|
pull_request:
|
2022-12-17 19:11:38 +03:00
|
|
|
branches: [master]
|
2022-11-10 15:51:06 +03:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
timeout-minutes: 60
|
2022-12-30 16:40:15 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-10 15:51:06 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 'latest'
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
registry-url: https://npm.pkg.github.com
|
|
|
|
scope: '@toeverything'
|
|
|
|
cache: 'pnpm'
|
|
|
|
|
2023-01-09 06:32:00 +03:00
|
|
|
- run: node scripts/module-resolve/ci.cjs
|
2022-11-10 15:51:06 +03:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install --no-frozen-lockfile
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
|
|
|
|
|
2022-12-30 16:40:15 +03:00
|
|
|
- name: Install Playwright browsers
|
|
|
|
run: npx playwright install chromium
|
|
|
|
|
|
|
|
# - name: Run E2E tests
|
|
|
|
# run: pnpm run test:e2e
|
|
|
|
# env:
|
|
|
|
# NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
|
|
|
|
# NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
|
2022-11-29 21:15:43 +03:00
|
|
|
|
|
|
|
- name: Run Unit tests
|
|
|
|
run: pnpm run test:unit
|