Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/pr-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR pipeline

on:
pull_request:
branches:
- develop

jobs:
ci-cd:
uses: HSLdevcom/transitdata-shared-workflows/.github/workflows/ci-cd-typescript.yml@main
with:
checkAndTestInsideDocker: true
checkAndTestOutsideDocker: false
performRelease: false
secrets: inherit
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<<<<<<< Updated upstream
FROM node:16-bullseye-slim
=======
FROM node:18-bullseye-slim AS base
>>>>>>> Stashed changes

ENV WORK=/opt/hsl-map-server
ENV DATA_DIR=${WORK}/data
Expand Down Expand Up @@ -27,6 +31,13 @@ RUN yarn install && yarn cache clean

COPY . ${WORK}

# tester stage: run linting checks; exits non-zero if linting fails
FROM base AS tester
RUN yarn eslint .

# production stage: download map data and expose the server
FROM base AS production

RUN mkdir -p ${DATA_DIR}

# OpenMapTiles dataset generated by hsldevcom
Expand Down
Loading