-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(template): sync with ahmadnassri/template-node-lib
- Loading branch information
Ahmad Nassri
committed
Mar 4, 2021
1 parent
5071a23
commit a26f1a5
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
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
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 |