2023-09-27 08:01:38 -06:00
|
|
|
name: Automatic Documentation for Launcher
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update_docs:
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-16 03:58:58 -07:00
|
|
|
|
2023-09-27 08:01:38 -06:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2024-02-16 03:58:58 -07:00
|
|
|
|
2024-07-03 01:53:35 -06:00
|
|
|
- name: Set up Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
|
|
|
|
- name: Install Protocol Buffers compiler
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y protobuf-compiler libprotobuf-dev
|
|
|
|
|
2023-09-27 08:01:38 -06:00
|
|
|
- name: Install Launcher
|
|
|
|
id: install-launcher
|
2024-05-22 08:22:57 -06:00
|
|
|
run: cargo install --path launcher/
|
2024-07-03 01:53:35 -06:00
|
|
|
|
|
|
|
- name: Install router
|
|
|
|
id: install-router
|
2024-07-31 02:33:10 -06:00
|
|
|
run: cargo install --path backends/v3/
|
2024-07-03 01:53:35 -06:00
|
|
|
|
2024-07-09 03:13:48 -06:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
|
2024-07-03 01:53:35 -06:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Check that documentation is up-to-date
|
2023-09-27 08:01:38 -06:00
|
|
|
run: |
|
2024-07-31 02:33:10 -06:00
|
|
|
npm install -g @redocly/cli
|
2023-09-27 08:01:38 -06:00
|
|
|
python update_doc.py --check
|