Refactor Cache Initialization and Logging in ValidatorsProcessor #12
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: 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 |