Current community #687
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: Api | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'packages/api/**' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
name: Build, Lint & Test | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.14.0' | |
cache: 'yarn' | |
- run: yarn install | |
- run: yarn workspace api lint | |
- run: yarn workspace api build | |
- run: cp .env.test .env | |
- run: yarn mongodb:start | |
# We should first run mongo and after that run tests | |
- run: yarn workspace api test:e2e |