1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 14:21:47 +03:00
fonts/.github/workflows/ci.yaml
rsheeter ade0d1e353
Add knowledge link check to CI (#4600)
* Exploratory knowledge link check

* Per IM, we current accept /topic *and* /topics. #4626 filed to tighten this.

* Accept /module/name as a topics ref. Return a failure code if any invalid link was seen.

* Plug into GH workflow

* Make knowledge check a standalone job

* Fix broken links so CI can pass
2022-05-10 14:26:59 -07:00

41 lines
982 B
YAML

# Check to_sandbox.txt and to_production.txt do not contain typos
name: Continuous Test
on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
branches: ['**']
jobs:
test_server_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
# Check to_sandbox.txt and to_production.txt do not contain typos
- name: Install gftools
run: pip install gftools[qa]
- name: Lint server files
run: gftools push-status . --lint
check_knowledge_graph:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
# Check Knowledge link graph
- name: Install dependencies
run: pip install absl-py mistune
- name: Check Knowledge graph
run: python3 .github/workflows/knowledge_graph.py