Skip to content

Add debug logs to troubleshoot the creation of the Indiekit/Express server and the connection to MongoDB #1975

Add debug logs to troubleshoot the creation of the Indiekit/Express server and the connection to MongoDB

Add debug logs to troubleshoot the creation of the Indiekit/Express server and the connection to MongoDB #1975

Workflow file for this run

name: build
on:
pull_request:
branches-ignore:
- dependabot/*
paths-ignore:
- docs/**
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
mongodb-version: [4]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Download localisations
uses: localazy/download@v1
with:
read_key: ${{ secrets.LOCALAZY_READ_KEY }}
write_key: ${{ secrets.LOCALAZY_WRITE_KEY }}
- name: Install packages and symlink local dependencies
# Can’t use npm ci due to https://github.com/npm/cli/issues/4828
run: |
npm i --package-lock=false
- name: Lint code
run: |
npm run lint
- name: Run tests
env:
NODE_ENV: test
SECRET: ${{ secrets.SECRET }}
run: |
npm test