forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.26 KB
/
guide-templates.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: master
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-rs/toolchain@v1
with:
toolchain: stable
override: true
- 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