Skip to content

Commit 6ec4ab5

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

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/regression.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ 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-${{ env.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
22-
vale --version
27+
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
28+
echo "./bin" >> $GITHUB_PATH
29+
- name: Verify Vale
30+
run: vale --version
2331
- name: Setup PNPM
2432
uses: pnpm/action-setup@v3
2533
with:

0 commit comments

Comments
 (0)