TCES-24 implement github actions for automated tests and lint for server and … #3
Workflow file for this run
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: Automated Server PR Tests and Lint | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
server-tests-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install server dependencies | |
run: | | |
cd server | |
npm install | |
- name: Run server tests | |
run: | | |
cd server | |
npm run test | |
- name: Run server linter | |
run: | | |
cd server | |
npm run lint | |