Merge upstream changes from informalsystems/hermes #50
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: Guide Template Checker | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/guide-templates.yaml | |
- crates/relayer-cli/** | |
- scripts/** | |
- tools/check-guide/** | |
- guide/src/templates/** | |
push: | |
branches: main | |
paths: | |
- .github/workflows/guide-templates.yaml | |
- crates/relayer-cli/** | |
- scripts/** | |
- tools/check-guide/** | |
- guide/src/templates/** | |
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
template-checker: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Check templates | |
run: bash scripts/auto_gen_templates.sh --mode "check" | |
- uses: actions-rs/cargo@v1 | |
name: Update lockfile | |
with: | |
command: generate-lockfile | |
args: --manifest-path tools/check-guide/Cargo.toml | |
- uses: actions-rs/cargo@v1 | |
name: Check guide | |
with: | |
command: run | |
args: --manifest-path tools/check-guide/Cargo.toml |