Skip to content

chore(*): moves to supabase for db + removes server workspace and docker usage #16

chore(*): moves to supabase for db + removes server workspace and docker usage

chore(*): moves to supabase for db + removes server workspace and docker usage #16

Workflow file for this run

name: Bot CI
on:
pull_request:
paths:
- '.github/workflows/bot.yml'
- 'bot/**'
env:
SERVICE_NAME: 'bot'
NODEJS_VERSION: '18.12.1'
PNPM_VERSION: '7.30.1'
jobs:
workflow:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
- name: Install pnpm globally
run: npm install -g pnpm
- name: Install dependencies globally
run: pnpm install --no-frozen-lockfile
- name: Install dependencies on bot
run: pnpm install --no-frozen-lockfile
working-directory: ./bot
- name: Restore Github Cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.OS }}-platform-server-${{ hashFiles('pnpm-lock.yaml', '**/pnpm-lock.yaml') }}
- name: Run Linter
run: pnpm lint
working-directory: ./bot
- name: Run Tests
run: pnpm test
working-directory: ./bot
- name: Run Prettier Formatting
run: npx prettier --write .
- name: Run Build
run: pnpm build
working-directory: ./bot