[TCES-48]: add endpoint to download resume #703
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 | |
env: | |
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} | |
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install server dependencies | |
run: | | |
cd server | |
npm install | |
mv .env.example .env | |
- name: Run server tests | |
run: | | |
cd server | |
NODE_OPTIONS=--unhandled-rejections=strict npm run test | |
- name: Run server linter | |
run: | | |
cd server | |
npm run lint |