Skip to content

bug: extend test timeout for webpack to finish build #26

bug: extend test timeout for webpack to finish build

bug: extend test timeout for webpack to finish build #26

Workflow file for this run

name: Build
on:
pull_request:
types: [ opened, reopened, synchronize ]
push:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install root dependencies
run: yarn install
- name: Install FFmpeg
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Build
run: yarn build
- name: Install dev dependencies
run: |
cd dev
yarn install
- name: Set up environment variables
run: |
cd dev
echo "DATABASE_URI=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.0" >> .env
echo "PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000" >> .env
echo "PAYLOAD_SECRET=hellohereisasecretforyou" >> .env
- name: Run tests
run: |
cd dev
yarn test