diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..08a2e7d51 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,22 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/pool-apps" + schedule: + interval: "daily" + allow: + - dependency-name: "stratum-core" + + - package-ecosystem: "cargo" + directory: "/miner-apps" + schedule: + interval: "daily" + allow: + - dependency-name: "stratum-core" + + - package-ecosystem: "cargo" + directory: "/integration-tests" + schedule: + interval: "daily" + allow: + - dependency-name: "stratum-core" diff --git a/.github/workflows/lockfiles.yaml b/.github/workflows/lockfiles.yaml index 65a6aaa8c..f7e32265a 100644 --- a/.github/workflows/lockfiles.yaml +++ b/.github/workflows/lockfiles.yaml @@ -30,45 +30,4 @@ jobs: cargo build --manifest-path=integration-tests/Cargo.toml --locked # while bitcoin-core-sv2 crate is still a lib crate, no need to lock it so we skip it here - # whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here - - stratum-freshness: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Get latest stratum commit on main - id: stratum - run: | - LATEST=$(git ls-remote https://github.com/stratum-mining/stratum refs/heads/main | cut -f1) - echo "latest_sha=$LATEST" >> "$GITHUB_OUTPUT" - echo "Latest stratum main commit: $LATEST" - - - name: Check lockfiles pin the latest stratum-core - run: | - LATEST="${{ steps.stratum.outputs.latest_sha }}" - FAILED=0 - - for lockfile in pool-apps/Cargo.lock miner-apps/Cargo.lock integration-tests/Cargo.lock; do - PINNED=$(grep -oP 'git\+https://github\.com/stratum-mining/stratum\?branch=main#\K[0-9a-f]+' "$lockfile" | head -1) - - if [ -z "$PINNED" ]; then - echo "WARNING: No stratum-core git pin found in $lockfile" - continue - fi - - if [ "$PINNED" != "$LATEST" ]; then - echo "FAIL: $lockfile is stale (pinned=$PINNED, latest=$LATEST)" - FAILED=1 - else - echo "OK: $lockfile is up to date ($PINNED)" - fi - done - - if [ "$FAILED" -eq 1 ]; then - echo "" - echo "Lockfiles are not pinned to the latest stratum-core commit." - echo "Run 'cargo update -p stratum-core' in each workspace to update them." - exit 1 - fi + # whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here \ No newline at end of file