Skip to content

Commit f48c1f4

Browse files
committed
ci: Add build and test ci
1 parent 5fc50cc commit f48c1f4

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/ci.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# この CI ではあくまでテストとビルド, フォーマットの検証のみを行う
2+
3+
name: ci
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
env:
15+
# renovate: rust-lang/mdBook
16+
MDBOOK_VERSION: '0.4.40'
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup deno
22+
uses: denoland/setup-deno@v1
23+
with:
24+
deno-version: v1.x
25+
26+
- name: Install mdbook
27+
uses: peaceiris/actions-mdbook@v2
28+
with:
29+
mdbook-version: ${{ env.MDBOOK_VERSION }}
30+
31+
- name: Run fmt
32+
run: |
33+
deno task format:check
34+
35+
- name: Run test
36+
run: |
37+
deno task test
38+
39+
- name: Run build
40+
run: |
41+
deno task build

deno.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"test": "mdbook test",
77
"clean": "mdbook clean",
88
"format": "deno fmt src/",
9-
"format:check": "deno fmt --check"
9+
"format:check": "deno fmt --check src/"
1010
}
1111
}

0 commit comments

Comments
 (0)