Introduce Paywalls and add ownerFirebaseId on Projects #1447
Workflow file for this run
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
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 |