-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
56 lines (47 loc) · 1.14 KB
/
Taskfile.yml
File metadata and controls
56 lines (47 loc) · 1.14 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
# SPDX-FileCopyrightText: 2025 Kalle Fagerberg
#
# SPDX-License-Identifier: CC0-1.0
version: 3
vars:
MOON_MODULES:
sh: echo ./src && find ./example -maxdepth 1 -mindepth 1 -type d
EXAMPLES:
sh: find ./example -maxdepth 1 -mindepth 1 -type d
tasks:
release:
desc: build and publish release
cmds:
- test {{.CLI_ARGS}}
- grep -F '"{{.CLI_ARGS}}"' moon.mod.json
- moon publish
- git tag {{.CLI_ARGS}}
- git push
- git push --tags
- gh release create --generate-notes {{.CLI_ARGS}}
format:
cmds:
- for: { var: MOON_MODULES }
cmd: cd {{.ITEM}} && moon fmt
lint:
cmds:
- for: { var: MOON_MODULES }
cmd: cd {{.ITEM}} && moon check
- for: { var: MOON_MODULES }
cmd: cd {{.ITEM}} && moon fmt --check
test:
cmds:
- task: test:moonbit
- task: test:firefly
test:moonbit:
cmds:
- for: { var: MOON_MODULES }
cmd: cd {{.ITEM}} && moon test
test:firefly:
cmds:
- for: { var: EXAMPLES }
cmd: ff build --no-tip {{.ITEM}}
all:
cmds:
- task: format
- task: lint
- task: test