Skip to content

Commit 3751abe

Browse files
committed
Ensure dependency requirements are bumped
#436
1 parent 99dbbb3 commit 3751abe

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches:
66
- master
7+
- v4.x
78
push:
89
branches:
910
- master
@@ -62,6 +63,15 @@ jobs:
6263
run: cargo doc --no-deps -p boring -p boring-sys --features rpk,underscore-wildcards
6364
env:
6465
DOCS_RS: 1
66+
- name: Cargo.toml boring versions consistency
67+
shell: bash
68+
run: |
69+
WORKSPACE_VERSION=$(grep -F '[workspace.package]' -A1 Cargo.toml | grep -F version | grep -Eo '".*"')
70+
if [[ -z "$WORKSPACE_VERSION" ]]; then echo 2>&1 "error: can't find boring version"; exit 1; fi
71+
if grep -E 'boring.* =' Cargo.toml | grep -vF "$WORKSPACE_VERSION"; then
72+
echo 2>&1 "error: boring dependencies must match workspace version $WORKSPACE_VERSION"
73+
exit 1
74+
fi
6575
test:
6676
name: Test
6777
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)