forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.09 KB
/
github-actions-yaml-test.yml
File metadata and controls
36 lines (34 loc) · 1.09 KB
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
name: ORFS variables.yaml tester and linter
on:
pull_request:
jobs:
docs-test-job:
name: 'Tests for variables.yaml'
if: github.event_name == 'pull_request' || github.event_name == 'push'
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
sparse-checkout: |
flow/scripts/generate-variables-docs.py
docs/user/FlowVariables.md
yamlfix.toml
- name: Run generate-variables-docs.py
run: |
python3 flow/scripts/generate-variables-docs.py
- name: Check if FlowVariables.md is up to date
run: |
git diff --exit-code docs/user/FlowVariables.md
- name: Install dependencies
run: |
python3 -m venv venv
venv/bin/pip install --quiet yamlfix==1.17.0
- name: Run yamlfix check
run: |
source venv/bin/activate
yamlfix --version
set -x
yamlfix -c yamlfix.toml flow/scripts/variables.yaml
git diff flow/scripts/variables.yaml