Update Rust crate schemars to v0.8.22 (#149) #385
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
name: Verify | |
on: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
with: | |
cache_key_prefix: mise-{{hashFiles('mise.toml')}} | |
experimental: true | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
shared-key: "lint" | |
- name: Lint | |
run: mise lint | |
publishable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
with: | |
experimental: true | |
- name: Passes publish checks | |
run: mise run verify-publish:* | |
codegen-up-to-date: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
with: | |
cache_key_prefix: mise-{{hashFiles('mise.toml')}} | |
experimental: true | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
shared-key: "codegen" | |
- name: Run codegen | |
run: mise run gen | |
- name: Check for changed files | |
run: | | |
if [[ -n $(git status --porcelain) ]]; then | |
echo "Files have changed after running tests:" | |
git status --porcelain | |
git diff | |
exit 1 | |
fi |