Add CodeQL Analysis #25
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: Check and Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check-and-test: | |
name: Check and Test | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js Environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ^14 | |
cache: 'npm' | |
- name: Install npm@7 | |
run: npm install -g npm@7 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Checks | |
run: npm run check | |
- name: Run Tests | |
run: npm run test |