Skip to content

Commit f5faebb

Browse files
committed
Add the exposed API check to the existing Lint CI
1 parent ddf7c06 commit f5faebb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: cargo +1.74.0 rbmt test msrv --lock-file ${{ matrix.dep }}
5353

5454
Lint:
55-
name: Lint - nightly toolchain
55+
name: Lint and API check
5656
runs-on: ubuntu-latest
5757
strategy:
5858
fail-fast: false
@@ -62,6 +62,8 @@ jobs:
6262
id: setup
6363
- name: "Run lint"
6464
run: cargo +${{ steps.setup.outputs.nightly-version }} rbmt lint
65+
- name: "Run API check"
66+
run: cargo +${{ steps.setup.outputs.nightly-version }} rbmt api
6567

6668
Docs:
6769
name: Docs - stable toolchain

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ docsrs *flags:
4242
@update-lock-files: _install-rbmt
4343
rustup run {{NIGHTLY_VERSION}} cargo rbmt lock
4444

45+
# Update the exposed API files in api/.
46+
[group('tools')]
47+
update-api-files: _install-rbmt
48+
cargo +{{NIGHTLY_VERSION}} rbmt api
49+
4550
# Run CI tasks with rbmt.
4651
[group('ci')]
4752
@ci task toolchain="stable" lock="recent": _install-rbmt

0 commit comments

Comments
 (0)