-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
58 lines (51 loc) · 1.21 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# ----------------------------------------------- #
# Note: this file originates in template-node-lib #
# ----------------------------------------------- #
services:
# ---- mega-linter ---- #
lint:
profiles: ["dev"]
image: oxsecurity/megalinter-javascript:v7.3.0
volumes:
- ./:/tmp/lint
environment:
MEGALINTER_CONFIG: .github/linters/.mega-linter.yml
REPORT_OUTPUT_FOLDER: none
VALIDATE_ALL_CODEBASE: true
# ---- readme generator ---- #
readme:
profiles: ["dev"]
image: pandoc/minimal:2.19
volumes:
- ./:/data
command: --defaults=.pandoc.yml
app:
profiles: ["app"]
image: node:latest
working_dir: /usr/src/lib
entrypoint: npm
tty: true
volumes:
- ./:/usr/src/lib
environment:
NODE_ENV: test
NPM_CONFIG_UPDATE_NOTIFIER: false
NPM_CONFIG_FUND: false
NPM_CONFIG_AUDIT: false
test-command:
extends: app
command: run test
test:
profiles: ["test"]
extends: test-command
depends_on:
- node18
- node20
node18:
profiles: ["test"]
extends: test-command
image: node:18-alpine
node20:
profiles: ["test"]
extends: test-command
image: node:20-alpine