Skip to content

Commit 5439a0c

Browse files
committed
[ci] use doctor-rst to lint docs
1 parent 7089e15 commit 5439a0c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci-docs.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "CI Docs Analysis"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'main'
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
env:
12+
PHPUNIT_FLAGS: "-v"
13+
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
14+
15+
jobs:
16+
doctor-rst:
17+
name: Lint (DOCtor-RST)
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: "Checkout"
23+
uses: actions/checkout@v3
24+
25+
- name: "Create cache dir"
26+
run: mkdir .cache
27+
28+
- name: "Extract base branch name"
29+
run: echo "branch=$(echo ${GITHUB_BASE_REF:=${GITHUB_REF##*/}})" >> $GITHUB_OUTPUT
30+
id: extract_base_branch
31+
32+
- name: "Cache DOCtor-RST"
33+
uses: actions/cache@v3
34+
with:
35+
path: .cache
36+
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}
37+
38+
- name: "Run DOCtor-RST"
39+
uses: docker://oskarstark/doctor-rst:1.61.1
40+
with:
41+
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache

0 commit comments

Comments
 (0)