-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.2 KB
/
check-sections.yml
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
name: Check Sections
on:
push:
branches: ["main"]
pull_request:
jobs:
check-sections:
strategy:
matrix:
source: ["rfc3647"]
document:
- "entrust"
include:
- source: "tlsbr"
document: "entrust"
name: Check sections of ${{ matrix.document }} against ${{ matrix.source }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python Environment
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt
- name: Check Document Sections
run: |
python tools/check_sections.py ${{ matrix.document }}.md ${{ matrix.source }} output-${{ matrix.source }}.txt
- name: Compare Document Sections
run: |
if ! diff -u tests/expected/${{ matrix.document }}-${{ matrix.source }}-sections.txt output-${{ matrix.source }}.txt; then
echo "Sections have changed, please verify the diff above and fix or commit changes"
exit 1
fi