-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatect.yml
94 lines (90 loc) · 2.29 KB
/
batect.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# code based in https://github.com/batect/node-bundle/blob/main/batect-bundle.yml
containers:
node-build-env:
image: node:14.17.0
volumes:
- local: <{batect.project_directory}
container: /code
options: cached
- local: ~/.ssh/
container: /home/container-user/.ssh/
options: cached
- local: ~/.gitconfig
container: /home/container-user/.gitconfig
options: cached
- type: cache
name: node_modules
container: /code/node_modules
- type: cache
name: yarn_cache
container: /home/container-user/.cache/yarn
working_directory: /code
enable_init_process: true
run_as_current_user:
enabled: true
home_directory: /home/container-user
tasks:
# Build
build:
group: Build
description: Install all dependencies into docker volume
run:
container: node-build-env
command: bash -c "yarn projects:build && yarn projects:build:webpack"
install:
group: Build
description: Build code
run:
container: node-build-env
command: bash -c "yarn install && yarn projects:bootstrap"
clean:
group: Build
description: Clean project builds
run:
container: node-build-env
command: bash -c "yarn remove-bundle"
version:
group: Build
description: Create a new version
run:
container: node-build-env
command: yarn exec lerna version
# Test
unit-testing:
group: test
description: Run unit testing
run:
container: node-build-env
command: yarn projects:test
# General
start-game:
group: general
description: Start local game tik tak toe
run:
container: node-build-env
command: yarn projects:cli:start
# Quality
lint:
group: Quality
description: Run lint
run:
container: node-build-env
command: yarn projects:lint
lint-fix:
group: Quality
description: Run lint fix
run:
container: node-build-env
command: yarn projects:lint:fix
format-code:
group: Quality
description: Format code
run:
container: node-build-env
command: yarn code-formatter
audit:
group: Quality
description: Check library vulnerability
run:
container: node-build-env
command: yarn projects:audit