Skip to content

build: Bun

build: Bun #109

Workflow file for this run

name: e2e
on:
push:
branches:
- main
- production
pull_request:
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 📦 install packages
run: pnpm i --frozen-lockfile
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps chromium
- name: Start Docker services (PostgreSQL, Redis, and S3)
run: docker compose up -d
- name: Build the api
run: pnpm build:api
- name: Init the DB
run: pnpm --filter @beep/api db:create
- name: Run Playwright tests
run: pnpm --filter @beep/test test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: test/playwright-report/
retention-days: 10