-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (48 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
67 lines (48 loc) · 1.59 KB
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
SHELL=/bin/bash
baseUrl = https://raw.githubusercontent.com/BinaryBirds/github-workflows/main/scripts
certVolume ?= feather_core_certificates
certOutputDir ?= .docker/certs
certOutputFile ?= $(certOutputDir)/ca.pem
check: symlinks language deps lint headers docc-warnings package
package:
curl -fsSL $(baseUrl)/check-swift-package.sh | bash
breakage:
curl -fsSL $(baseUrl)/check-api-breakage.sh | bash
symlinks:
curl -fsSL $(baseUrl)/check-broken-symlinks.sh | bash
language:
curl -fsSL $(baseUrl)/check-unacceptable-language.sh | bash
deps:
curl -fsSL $(baseUrl)/check-local-swift-dependencies.sh | bash
lint:
curl -fsSL $(baseUrl)/run-swift-format.sh | bash
format:
curl -fsSL $(baseUrl)/run-swift-format.sh | bash -s -- --fix
docc-local:
curl -fsSL $(baseUrl)/generate-docc.sh | bash -s -- --local
run-docc:
curl -fsSL $(baseUrl)/run-docc-docker.sh | bash
docc-warnings:
curl -fsSL $(baseUrl)/check-docc-warnings.sh | bash
headers:
curl -fsSL $(baseUrl)/check-swift-headers.sh | bash
fix-headers:
curl -fsSL $(baseUrl)/check-swift-headers.sh | bash -s -- --fix
test:
swift test --parallel
docker-up:
docker compose up -d certificates postgres
docker-down:
docker compose down -v --remove-orphans
docker-test:
docker compose up --build --abort-on-container-exit --exit-code-from tests tests; \
status=$$?; \
docker compose down -v --remove-orphans; \
exit $$status
export-postgres-ca:
mkdir -p $(certOutputDir)
docker run --rm \
-v $(certVolume):/from \
-v $(PWD)/$(certOutputDir):/to \
alpine sh -c 'cp /from/ca.pem /to/ca.pem'
@echo "Exported CA certificate to: $(certOutputFile)"