Skip to content

Commit

Permalink
ci: ensure lock files are up-to-date (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI authored Aug 22, 2024
1 parent 7a3723d commit ff68c99
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "PR"

on:
push:
branches:
- "main"
pull_request:

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
lock-files:
name: "Check lock files"
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: "Checkout sources"
uses: "actions/checkout@v4"

- name: "Update lock files"
run: |
cargo tree
(cd ./bin/client-eth && cargo tree)
(cd ./bin/client-op && cargo tree)
- name: "Assert no changes"
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Lock files not up to date"
exit 1
fi

0 comments on commit ff68c99

Please sign in to comment.