TCES-24 implement github actions for automated tests and lint for server and … #1
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 Client PR Tests and Lint | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
client-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 client dependencies | |
run: | | |
cd client | |
npm ci | |
- name: Run client tests | |
run: | | |
cd client | |
npm test | |
- name: Run client linter | |
run: | | |
cd client | |
npm run lint | |