updated html-embed package #688
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Testing | |
# This workflow can be used for pushing to the production server and will only be ran when code is pushed to the main branch | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: node:18 | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: 123 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
redis: | |
# Docker Hub image | |
image: redis | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
npm i -g pnpm | |
pnpm i | |
- run: pnpm run prisma:migrate_dev | |
env: | |
DATABASE_URL: 'postgresql://postgres:123@postgres:5432/postgres' | |
DATABASE_DIRECT_URL: 'postgresql://postgres:123@postgres:5432/postgres' | |
- run: pnpm build | |
env: | |
DATABASE_URL: 'postgresql://postgres:123@postgres:5432/postgres' | |
DATABASE_DIRECT_URL: 'postgresql://postgres:123@postgres:5432/postgres' | |
DEV_MODE: true | |
REDIS_HOST: redis | |
REDIS_PORT: 6379 | |
JWT_SECRET: 'change me' | |
PORT: 80 | |
MAX_CHANNELS_PER_SERVER: 100 | |
MAX_INVITES_PER_SERVER: 10 | |
MAX_ROLES_PER_SERVER: 50 | |
DEFAULT_SERVER_ROLE_COLOR: '#fff' |