Skip to content

Commit 2a7491b

Browse files
committed
rework CI to put commands into the justfile
1 parent 05c7505 commit 2a7491b

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Check for consistency
22-
run: cargo run -- check
19+
- uses: extractions/setup-just@v2
20+
- name: Build and check
21+
run: just check

.github/workflows/mdbook.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ jobs:
4141
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
4242
rustup update
4343
cargo install --version ${MDBOOK_VERSION} mdbook
44+
- uses: extractions/setup-just@v2
4445
- name: Setup Pages
4546
id: pages
4647
uses: actions/configure-pages@v5
47-
- name: Build with mdBook
48-
run: mdbook build
49-
- name: Generate JSON data
50-
run: cargo run -- json 2024h2 --json-path book/html/api/2024h2.json
48+
- name: Build
49+
run: just build
5150
env:
5251
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5352
- name: Upload artifact

justfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ serve: api
55
mdbook serve
66

77
build: api
8-
mdbook build
8+
mdbook build
9+
10+
check:
11+
cargo build
12+
cargo run -- check
13+

0 commit comments

Comments
 (0)