mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
The docs tools, the partition gate and their registries each spelled out src/main/java/io/github/hectorvent/floci/. tools/java_sources.py now holds the package path, the tools import it, and services.yaml and service_matrix.yaml list sources relative to the package root, so the move to io.floci.aws changes one line here. A registry entry still in the repo-relative form fails with a message naming the new form. prefetch-images.sh finds TestImages.java by name. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Docs Action Tables
|
|
|
|
# Keeps the generated tables in docs/services/*.md in sync with their sources: the
|
|
# "Supported Actions" tables with handler source, and the CloudFormation "Supported Resource
|
|
# Types" table with the provisioner inventory TSV. Runs on handler changes (which can add or
|
|
# remove actions), inventory changes (which add or move resource types), and on doc or tooling
|
|
# changes. Python-only, so it is fast and independent of the Java build job.
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'src/main/**'
|
|
- 'src/test/resources/cloudformation/**'
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
- 'tools/docs/**'
|
|
- 'tools/java_sources.py'
|
|
- 'Makefile'
|
|
- '.github/workflows/docs-actions.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'src/main/**'
|
|
- 'src/test/resources/cloudformation/**'
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
- 'tools/docs/**'
|
|
- 'tools/java_sources.py'
|
|
- 'Makefile'
|
|
- '.github/workflows/docs-actions.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
# Cancel a superseded run only on pull requests; a run on main is left to finish (see ci.yml).
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
action-tables:
|
|
name: Docs in sync
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install tooling deps
|
|
run: pip install -r tools/docs/requirements.txt -r docs/requirements.txt
|
|
|
|
- name: Run action-table tests
|
|
run: make docs-test
|
|
|
|
- name: Check action tables are in sync
|
|
run: make docs-check
|
|
|
|
- name: Build docs (strict)
|
|
run: mkdocs build --strict --site-dir /tmp/site
|