Backend/database #4
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: Check and test the source code | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'backend/**' | |
jobs: | |
test: | |
name: Check the source code | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: './backend' | |
strategy: | |
matrix: | |
node-version: [20.9.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Run eslint and tests | |
run: npm run validate |