Skip to content

update readme

update readme #7

Workflow file for this run

name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
NODE_VERSION: 20
jobs:
linter:
runs-on: ubuntu-latest
name: Static Code Analysis
steps:
- uses: actions/checkout@v3
- name: Run linting rules
uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
cache: "npm"
cache-dependency-path: |
catalog/package-lock.json
lambda/package-lock.json
- name: analyze in the catalog folder
working-directory: catalog
run: npm ci && npm run linter
- name: analyze in the lambda folder
working-directory: lambda
run: npm ci && npm run linter
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run unit tests
uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
cache: "npm"
cache-dependency-path: |
catalog/package-lock.json
lambda/package-lock.json
- name: run testing in the catalog folder
working-directory: catalog
run: npm ci && npm run test
- name: run testing in the lambda folder
working-directory: lambda
run: npm ci && npm run test