-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (43 loc) · 1.08 KB
/
Makefile
File metadata and controls
61 lines (43 loc) · 1.08 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
SEMVER_BIN=./bin/semver
SEMVER=`${SEMVER_BIN}`
# Default target
release: patch-release
patch-release-and-deploy: patch-release watch deploy sleep infra-watch
minor:
@${SEMVER_BIN} inc minor
patch:
@${SEMVER_BIN} inc patch
bump-patch: patch push-semver
bump-minor: minor push-semver
push-semver:
@echo "Increment version to ${SEMVER}"
@git add .semver
@git commit -m ${SEMVER}
@git push
patch-release: bump-patch push-release
minor-release: bump-minor push-release
push-release:
@gh release create ${SEMVER} --generate-notes
@git pull --tags
.PHONY: test
test:
./bin/rails db:test:prepare test test:system
up:
./bin/dev
clean:
rm -fr tmp/postgres_data/
dropuser -h localhost -U postgres
create_user:
createuser -h localhost -U postgres -s
deps:
brew install terminal-notifier
brew install oven-sh/bun/bun
bundle install
watch:
@${GH} run watch ${LATEST_RUN_ID}
infra-watch:
@${INFRA_GH} run watch ${LATEST_INFRA_RUN_ID}
infra-view:
@${INFRA_GH} run view ${LATEST_INFRA_RUN_ID} --log-failed
list:
@${INFRA_GH} run list --workflow=${WORKFLOW} -L 3 -e workflow_dispatch