Skip to content

build(deps): bump the client_deps group across 1 directory with 25 updates #148

build(deps): bump the client_deps group across 1 directory with 25 updates

build(deps): bump the client_deps group across 1 directory with 25 updates #148

Workflow file for this run

name: "Lint and Test (Server)"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
environment: test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.2-alpine
ports:
- "5432:5432"
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: memoista_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/memoista_test
TOKEN_SECRET: test-secret
defaults:
run:
working-directory: server
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: server/package-lock.json
- name: Install dependencies
run: npm install
- name: Test
run: npm run test
- name: Test (e2e)
run: npm run test:e2e:ci
lint:
environment: test
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: server/package-lock.json
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint