W/feat/decrement points #206
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: Continuous Integration | |
on: | |
pull_request: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '21.6.1' | |
# Install dependencies and run lint in the server directory | |
- name: Install server dependencies | |
run: | | |
cd server | |
npm install | |
- name: Run server lint | |
run: | | |
cd server | |
npm run lint | |
- name: Run server Jest tests | |
run: | | |
cd server | |
npm test -- --coverage | |
env: | |
TZ: 'America/New_York' | |
# Install dependencies, run lint, and tests in the client directory | |
- name: Install client dependencies | |
run: | | |
cd client | |
npm install | |
- name: Run client lint | |
run: | | |
cd client | |
npm run lint-fix | |
- name: Run client Jest tests | |
continue-on-error: true | |
run: | | |
cd client | |
npm test -- --coverage | |
env: | |
TZ: 'America/New_York' |