build(deps): bump the server_deps group across 1 directory with 18 updates #144
Workflow file for this run
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: "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 |