Skip to content

Commit e87db8d

Browse files
committed
ci: cache vale binary
1 parent 5849723 commit e87db8d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/regression.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ jobs:
1414
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17+
- name: Check cached Vale
18+
id: cache-vale
19+
uses: actions/cache@v4
20+
with:
21+
path: bin
22+
key: vale-${{ VALE_VERSION }}
1723
- name: Install Vale
24+
if: steps.cache-vale.outputs.cache-hit != 'true'
1825
run: |
1926
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
20-
mkdir vale && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C vale
21-
echo "$PWD/vale" >> $GITHUB_PATH
27+
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
28+
echo "./bin" >> $GITHUB_PATH
2229
vale --version
2330
- name: Setup PNPM
2431
uses: pnpm/action-setup@v3

0 commit comments

Comments
 (0)