This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
batect.yml
67 lines (57 loc) · 1.45 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
containers:
joke-service:
build_directory: .batect/joke-service
app:
build_directory: .batect/app
dependencies:
- joke-service
test-env:
build_directory: .batect/test-env
tasks:
hello-world:
description: Say hello to everyone
run:
container: node-build-env
command: echo 'Hello world!'
shell:
description: Start a shell in the development environment
run:
container: node-build-env
command: bash
setup:
description: Install dependencies needed to build and run the application
run:
container: node-build-env
command: yarn install
build:
description: Build the application
run:
container: node-build-env
command: sh -c "cp package.json .batect/app && cp yarn.lock .batect/app && yarn exec tsc"
run:
description: Run the application
prerequisites:
- build
run:
container: app
ports:
- local: 8080
container: 8080
lint:
description: Run linting across all source code
run:
container: node-build-env
command: yarn exec prettier -- -c *.ts
smoke-test:
description: Quickly confirm that the built application runs as expected.
run:
container: test-env
command: curl --fail --silent --show-error http://app:8080/
dependencies:
- app
prerequisites:
- build
include:
- type: git
repo: https://github.com/batect/node-bundle.git
ref: 0.73.0