Update recommender readme.md (#572) #1082
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: Backend | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
env: | |
NODE_VERSION: "20.x" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [user, listing, review, message, lib, charity] | |
fail-fast: false | |
defaults: | |
run: | |
working-directory: apps/backend/${{ matrix.service }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [user, listing, review, message, lib, charity] | |
fail-fast: false | |
defaults: | |
run: | |
working-directory: apps/backend/${{ matrix.service }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Format | |
run: npm run format:ci | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [user, listing, review, message, lib, charity] | |
fail-fast: false | |
defaults: | |
run: | |
working-directory: apps/backend/${{ matrix.service }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test:ci | |
sast: | |
name: Static Application Security Testing | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [user, listing, review, message, lib, charity] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Nodejs Scan | |
uses: ajinabraham/njsscan-action@master | |
with: | |
args: './apps/backend/${{ matrix.service }}' | |
supply: | |
name: Supply Chain Security | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [user, listing, review, message, lib, charity] | |
fail-fast: false | |
defaults: | |
run: | |
working-directory: apps/backend/${{ matrix.service }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm audit --audit-level high |