This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
Add CodeQL workflow #346
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Yarn Test & Automerge | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
bson: [4.x, 5.x, 6.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: '16.x' | |
- run: yarn install --frozen-lockfile # will run `yarn install` command | |
- run: yarn add bson@${{ matrix.bson }} | |
- run: yarn sanity # will check if building works & if code is formatted well | |
- run: yarn test |