diff --git a/server/.github/workflows/node.js.yml b/server/.github/workflows/node.js.yml index 4f28b65e0..1e21ee058 100644 --- a/server/.github/workflows/node.js.yml +++ b/server/.github/workflows/node.js.yml @@ -15,28 +15,39 @@ env: on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Test on Node.js 15 - uses: actions/setup-node@v2 - with: - node-version: 15.x - - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.0.2 - - - uses: supercharge/mongodb-github-action@1.4.1 - - uses: supercharge/redis-github-action@1.1.0 - - - run: pnpm i - - run: pnpm lint - - run: pnpm test + # install node15 + - name: Test on Node.js 15 + uses: actions/setup-node@v2 + with: + node-version: 15.x + + # install pnpm + - uses: pnpm/action-setup@v2.0.1 + with: + version: 6.0.2 + + # configure external dbs + - uses: supercharge/mongodb-github-action@1.4.1 + - uses: supercharge/redis-github-action@1.1.0 + + # install deps + - run: pnpm i + + # for the time being, disable lint checking. + # - run: pnpm lint + + # enable indexing for our testingdb, this results in faster action time. + - run: ts-node scripts/set-indexes.ts + + # run tests + - run: pnpm test