forked from Layr-Labs/eigensdk-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
14,037 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Check anvil dump is up-to-date | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
check: | ||
name: Check anvil dump state is up to date | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# This step is needed to know if the contracts were changed. | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
contracts: | ||
- 'crates/contracts/lib/**' | ||
- 'crates/contracts/script/**' | ||
- 'crates/contracts/src/**' | ||
# This step runs only if some contract changed. | ||
# It checks the diff in the anvil state file. | ||
# If the diff is null, that means the anvil state has not changed, | ||
# i.e. the anvil state outdated and therefore this step will fail. | ||
# Note: if the git diff fails to fetch the changes, then the step will also fail. | ||
- name: Check the anvil dump has changed | ||
if: steps.filter.outputs.contracts == 'true' | ||
working-directory: crates/contracts/anvil/contracts_deployed_anvil_state.json | ||
run: | | ||
if [ -z "$(git diff origin/${{ github.event.pull_request.base.ref }} -- state.json)" ]; then | ||
echo "The anvil dump is outdated"; | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release-plz | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
# Release unpublished packages. | ||
release-plz-release: | ||
name: Release-plz release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Run release-plz | ||
uses: release-plz/[email protected] | ||
with: | ||
command: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
Oops, something went wrong.