-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge branch 'release/v2_contracts' into feat/incentive-manager
- Loading branch information
Showing
94 changed files
with
1,399 additions
and
4,202 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,4 @@ | ||
# define x-task aliases | ||
# see https://github.com/matklad/cargo-xtask | ||
[alias] | ||
xtask = "run --package xtask --" |
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
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,39 @@ | ||
name: Validate schemas | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
validate_schemas: | ||
name: Validate schemas are up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Validate schemas are up to date | ||
run: ./scripts/build_schemas.sh -d true | ||
|
||
- name: Add comment if failed | ||
if: ${{ failure() }} | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const { execSync } = require("child_process"); | ||
const diffSchemas = execSync( | ||
'git ls-files --modified --others --exclude-standard "*.json"', | ||
{ encoding: "utf-8" } | ||
).trim(); | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `Schema generation had missing jobs:\n\`\`\`\n${diffSchemas}\n\`\`\`\nPlease run \`just schemas\` locally and upload the generated schemas.` | ||
}) |
Oops, something went wrong.