File tree 2 files changed +42
-1
lines changed
2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 6
6
"test" : " mdbook test" ,
7
7
"clean" : " mdbook clean" ,
8
8
"format" : " deno fmt src/" ,
9
- "format:check" : " deno fmt --check"
9
+ "format:check" : " deno fmt --check src/ "
10
10
}
11
11
}
You can’t perform that action at this time.
0 commit comments