Skip to content

K8s webhook config

K8s webhook config #62

Workflow file for this run

name: Unit tests
on:
pull_request:
branches: ['main', 'development']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./snack-bar-api
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: snack-bar-api/package-lock.json
- name: Install dependencies
run: npm install
working-directory: ${{env.working-directory}}
- name: Run unit tests
run: npm run test
working-directory: ${{env.working-directory}}