We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99dbbb3 commit 3751abeCopy full SHA for 3751abe
1 file changed
.github/workflows/ci.yml
@@ -4,6 +4,7 @@ on:
4
pull_request:
5
branches:
6
- master
7
+ - v4.x
8
push:
9
10
@@ -62,6 +63,15 @@ jobs:
62
63
run: cargo doc --no-deps -p boring -p boring-sys --features rpk,underscore-wildcards
64
env:
65
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
75
test:
76
name: Test
77
runs-on: ${{ matrix.os }}
0 commit comments