Skip to content

Commit 390f9ca

Browse files
authored
Merge pull request #4 from Shourya742/2026-03-18-add-dependabot
add dependabot to sv2
2 parents 2fef8b9 + 8b6ad65 commit 390f9ca

5 files changed

Lines changed: 76 additions & 95 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/pool-apps"
5+
schedule:
6+
interval: "daily"
7+
allow:
8+
- dependency-name: "stratum-core"
9+
10+
- package-ecosystem: "cargo"
11+
directory: "/miner-apps"
12+
schedule:
13+
interval: "daily"
14+
allow:
15+
- dependency-name: "stratum-core"
16+
17+
- package-ecosystem: "cargo"
18+
directory: "/integration-tests"
19+
schedule:
20+
interval: "daily"
21+
allow:
22+
- dependency-name: "stratum-core"

.github/workflows/lockfiles.yaml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -30,45 +30,4 @@ jobs:
3030
cargo build --manifest-path=integration-tests/Cargo.toml --locked
3131
3232
# while bitcoin-core-sv2 crate is still a lib crate, no need to lock it so we skip it here
33-
# whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here
34-
35-
stratum-freshness:
36-
runs-on: ubuntu-latest
37-
38-
steps:
39-
- uses: actions/checkout@v4
40-
41-
- name: Get latest stratum commit on main
42-
id: stratum
43-
run: |
44-
LATEST=$(git ls-remote https://github.com/stratum-mining/stratum refs/heads/main | cut -f1)
45-
echo "latest_sha=$LATEST" >> "$GITHUB_OUTPUT"
46-
echo "Latest stratum main commit: $LATEST"
47-
48-
- name: Check lockfiles pin the latest stratum-core
49-
run: |
50-
LATEST="${{ steps.stratum.outputs.latest_sha }}"
51-
FAILED=0
52-
53-
for lockfile in pool-apps/Cargo.lock miner-apps/Cargo.lock integration-tests/Cargo.lock; do
54-
PINNED=$(grep -oP 'git\+https://github\.com/stratum-mining/stratum\?branch=main#\K[0-9a-f]+' "$lockfile" | head -1)
55-
56-
if [ -z "$PINNED" ]; then
57-
echo "WARNING: No stratum-core git pin found in $lockfile"
58-
continue
59-
fi
60-
61-
if [ "$PINNED" != "$LATEST" ]; then
62-
echo "FAIL: $lockfile is stale (pinned=$PINNED, latest=$LATEST)"
63-
FAILED=1
64-
else
65-
echo "OK: $lockfile is up to date ($PINNED)"
66-
fi
67-
done
68-
69-
if [ "$FAILED" -eq 1 ]; then
70-
echo ""
71-
echo "Lockfiles are not pinned to the latest stratum-core commit."
72-
echo "Run 'cargo update -p stratum-core' in each workspace to update them."
73-
exit 1
74-
fi
33+
# whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here

integration-tests/Cargo.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)