Skip to content

Commit 956b0d3

Browse files
author
smoench
committed
cache doctor rst
1 parent 853d05f commit 956b0d3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
name: CI
1010

11+
env:
12+
BASE_BRANCH: ${{ github.base_ref || github.ref }}
13+
1114
jobs:
1215
build:
1316
name: Build
@@ -52,7 +55,18 @@ jobs:
5255
- name: "Checkout"
5356
uses: actions/checkout@v2
5457

58+
- name: "Create cache dir"
59+
run: mkdir .cache
60+
61+
- name: "Cache DOCtor-RST"
62+
uses: actions/cache@v1
63+
with:
64+
path: .cache
65+
key: ${{ runner.os }}-doctor-rst-34
66+
67+
- run: echo ${BASE_BRANCH}
68+
5569
- name: "Run DOCtor-RST"
5670
uses: docker://oskarstark/doctor-rst
5771
with:
58-
args: --short
72+
args: --short --cache-file=/github/workspace/.cache/doctor-rst.cache

0 commit comments

Comments
 (0)