Skip to content

Add Cache Control and Error Handling to Validator Handlers #10

Add Cache Control and Error Handling to Validator Handlers

Add Cache Control and Error Handling to Validator Handlers #10

Workflow file for this run

name: CI-API
on:
push:
branches:
- main
- build-test
pull_request:
branches:
- main
- build-test
jobs:
build-api:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: api/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('api/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
working-directory: api
- name: Build project
run: npm run build
working-directory: api
# TODO: run tests for this app
#- name: Run tests
# run: npm test
# working-directory: api