Skip to content

Commit aebd15f

Browse files
committed
☕ Add Makefile as a task runner
1 parent a453c2b commit aebd15f

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
with:
2525
deno-version: ${{ env.DENO_VERSION }}
2626
- name: Type check
27-
run: |
28-
deno test --unstable --no-run ./**/*.ts
27+
run: make type-check
2928

3029
lint:
3130
runs-on: ubuntu-20.04
@@ -36,7 +35,7 @@ jobs:
3635
with:
3736
deno-version: ${{ env.DENO_VERSION }}
3837
- name: Lint
39-
run: deno lint
38+
run: make lint
4039

4140
format:
4241
runs-on: ubuntu-20.04
@@ -47,8 +46,7 @@ jobs:
4746
with:
4847
deno-version: ${{ env.DENO_VERSION }}
4948
- name: Format
50-
run: |
51-
deno fmt --check
49+
run: make fmt-check
5250

5351
test:
5452
runs-on: ubuntu-20.04
@@ -90,8 +88,7 @@ jobs:
9088
env:
9189
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable }}
9290
- name: Test
93-
run: |
94-
deno test --unstable -A
91+
run: make test
9592
env:
9693
DENOPS_TEST_VIM: ${{ steps.vim.outputs.executable }}
9794
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.tools

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
fmt: FORCE
2+
@deno fmt
3+
4+
fmt-check: FORCE
5+
@deno fmt --check
6+
7+
lint: FORCE
8+
@deno lint
9+
10+
type-check: FORCE
11+
@deno test --unstable --no-run **/*.ts
12+
13+
test: FORCE
14+
@deno test --unstable -A
15+
16+
FORCE:

0 commit comments

Comments
 (0)