File tree Expand file tree Collapse file tree 3 files changed +36
-7
lines changed Expand file tree Collapse file tree 3 files changed +36
-7
lines changed Original file line number Diff line number Diff line change 10
10
push :
11
11
branches :
12
12
- main
13
+ paths :
14
+ - " **/*.md"
15
+ - " **/*.ts"
16
+ - " .github/workflows/test.yml"
13
17
pull_request :
14
18
branches :
15
19
- main
20
+ paths :
21
+ - " **/*.md"
22
+ - " **/*.ts"
23
+ - " .github/workflows/test.yml"
16
24
17
25
jobs :
18
26
typecheck :
24
32
with :
25
33
deno-version : ${{ env.DENO_VERSION }}
26
34
- name : Type check
27
- run : |
28
- deno test --unstable --no-run ./**/*.ts
35
+ run : make type-check
29
36
30
37
lint :
31
38
runs-on : ubuntu-20.04
36
43
with :
37
44
deno-version : ${{ env.DENO_VERSION }}
38
45
- name : Lint
39
- run : deno lint
46
+ run : make lint
40
47
41
48
format :
42
49
runs-on : ubuntu-20.04
47
54
with :
48
55
deno-version : ${{ env.DENO_VERSION }}
49
56
- name : Format
50
- run : |
51
- deno fmt --check
57
+ run : make fmt-check
52
58
53
59
test :
54
60
runs-on : ubuntu-20.04
90
96
env :
91
97
DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable }}
92
98
- name : Test
93
- run : |
94
- deno test --unstable -A
99
+ run : make test
95
100
env :
96
101
DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable }}
97
102
DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable }}
Original file line number Diff line number Diff line change
1
+ /.tools
Original file line number Diff line number Diff line change
1
+ .DEFAULT_GOAL := help
2
+
3
+ help :
4
+ @cat $(MAKEFILE_LIST ) | \
5
+ perl -ne ' print if /^\w+.*##/;' | \
6
+ perl -pe ' s/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
7
+
8
+ fmt : FORCE # # Format code
9
+ @deno fmt
10
+
11
+ fmt-check : FORCE # # Format check
12
+ @deno fmt --check
13
+
14
+ lint : FORCE # # Lint code
15
+ @deno lint
16
+
17
+ type-check : FORCE # # Type check
18
+ @deno test --unstable --no-run ** /* .ts
19
+
20
+ test : FORCE # # Test
21
+ @deno test --unstable -A
22
+
23
+ FORCE :
You can’t perform that action at this time.
0 commit comments