Skip to content

Commit

Permalink
Adding outdated job (#16)
Browse files Browse the repository at this point in the history
* Adding outdated job

* Updating dependencies

* Removing patch to minor version
  • Loading branch information
andrewrlee authored Feb 18, 2021
1 parent b3713ee commit 61b41df
Show file tree
Hide file tree
Showing 6 changed files with 14,719 additions and 282 deletions.
36 changes: 27 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
version: 2.1

orbs:
hmpps: ministryofjustice/hmpps@2.2
hmpps: ministryofjustice/hmpps@2.3

executors:
integration-tests:
docker:
- image: circleci/node:14-buster-browsers
- image: cimg/node:14.15-browsers
- image: circleci/redis:buster
working_directory: ~/app
builder:
docker:
- image: 'circleci/node:14-buster-browsers'
working_directory: ~/app


jobs:
build:
executor: builder
executor:
name: hmpps/node
tag: 14.15-browsers
steps:
- checkout
- run:
Expand Down Expand Up @@ -52,8 +49,28 @@ jobs:
- dist
- .cache/Cypress

check_outdated:
executor:
name: hmpps/node
tag: 14.15-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: install-npm
command: 'npm ci --no-audit'
- run:
name: Check version
command: 'npm --version'
- run:
name: Run check
command: 'npm outdated typescript govuk-frontend'

unit_test:
executor: builder
executor:
name: hmpps/node
tag: 14.15-browsers
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -147,3 +164,4 @@ workflows:
- main
jobs:
- hmpps/npm_security_audit
- check_outdated
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ARG BUILD_NUMBER
ARG GIT_REF

FROM node:14-buster-slim as base
FROM node:14.15-buster-slim as base

LABEL maintainer="HMPPS Digital Studio <info@digital.justice.gov.uk>"

Expand Down Expand Up @@ -53,7 +53,7 @@ COPY --from=build --chown=appuser:appgroup \
/app/build-info.json ./dist/build-info.json

COPY --from=build --chown=appuser:appgroup \
/app/assets ./assets
/app/assets ./assets

COPY --from=build --chown=appuser:appgroup \
/app/dist ./dist
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ And then either, run tests in headless mode with:
Or run tests with the cypress UI:

`npm run int-test-ui`


### Dependency Checks

The template project has implemented some scheduled checks to ensure that key dependencies are kept up to date.
If these are not desired in the cloned project, remove references to `check_outdated` job from `.circleci/config.yml`
Loading

0 comments on commit 61b41df

Please sign in to comment.