Skip to content

Commit 4ede103

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

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
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

0 commit comments

Comments
 (0)