File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments