Skip to content

Add-dialects

Add-dialects #1445

Workflow file for this run

name: Test Suite
on:
workflow_dispatch:
pull_request:
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
CI: test
NODE_ENV: test
MAIN_KEY: ${{ secrets.MAIN_KEY }}
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [20.x]
mongodb-version: [5.0, 6.0]
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Use Node.js @${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install Project Dependencies
run: |
rm -rf ./node_modules; npm install
npm install -g firebase-tools
- name: Build Server
run: |
npm run build
- name: Test Server Build Process
run: npm run test:build
- name: Test Backend
run: npm run jest:backend
- name: Test Frontend
run: npm run jest:frontend