Skip to content

Commit

Permalink
chore(template): sync with ahmadnassri/template-node-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Mar 4, 2021
1 parent 5071a23 commit a26f1a5
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# ----------------------------------------------------------- #
# Note: this file originates in ahmadnassri/template-node-lib #
# ----------------------------------------------------------- #

version: '3.8'

x-node: &node
tty: true
volumes:
- type: bind
source: .
target: /app
working_dir: /app
command: npm run test

services:
# ---- super-linter ---- #
lint:
image: github/super-linter:v3
volumes:
- ./:/tmp/lint
environment:
RUN_LOCAL: 'true'
LOG_LEVEL: 'ERROR'
MULTI_STATUS: 'false'

# ---- readme generator ---- #
readme:
image: pandoc/core:2.11.4
volumes:
- ./:/data
command: >-
--metadata-file=colophon.yml
--template=docs/README.template
--output=README.md
--from=gfm
--to=gfm
--fail-if-warnings
--wrap=preserve
--reference-links
docs/README.md
test:
<<: *node
image: node:alpine
depends_on:
- node12
- node14
- node15

node12:
<<: *node
image: node:12-alpine

node14:
<<: *node
image: node:14-alpine

node15:
<<: *node
image: node:15-alpine

0 comments on commit a26f1a5

Please sign in to comment.