-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 907 Bytes
/
Copy pathvalidate.yml
File metadata and controls
38 lines (31 loc) · 907 Bytes
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
name: Validate
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# All tasks run through build.sh in the docs-toolbox container image, so
# CI uses the same toolchain (Ruby, Node.js, Asciidoctor) as local runs.
# The GitHub runner provides Docker, so build.sh executes in-container.
- name: Validate metamodel
run: ./build.sh validate
- name: Run tests
run: ./build.sh test
- name: Check generated agent adapters
run: ./build.sh check-adapters
- name: Verify generated documentation is current
run: |
./build.sh generate
if [ -n "$(git status --porcelain)" ]; then
git status --short
git diff --exit-code
exit 1
fi