Merge pull request #69 from boardgamers/glcanvas #87
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-Node | |
on: | |
push: | |
paths: | |
- ".github/workflows/api.yml" | |
- "apps/api/**" | |
- "packages/**" | |
branches: | |
- master | |
pull_request: | |
paths: | |
- ".github/workflows/api.yml" | |
- "apps/api/**" | |
- "packages/**" | |
defaults: | |
run: | |
working-directory: apps/api | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 4.4 | |
- run: corepack enable | |
- run: pnpm install --filter {./}... | |
- run: pnpm run lint-check | |
- run: pnpm install --filter "@bgs/models" | |
- run: pnpm install --filter "@bgs/utils" | |
- run: pnpm run tsc | |
- run: pnpm run test |