ci: cache vale binary #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Regression tests | ||
on: [push, pull_request] | ||
env: | ||
VALE_VERSION: 3.2.2 | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check cached Vale | ||
id: cache-vale | ||
uses: actions/cache@v4 | ||
with: | ||
path: bin | ||
key: vale-${{ VALE_VERSION }} | ||
Check failure on line 22 in .github/workflows/regression.yml
|
||
- name: Install Vale | ||
if: steps.cache-vale.outputs.cache-hit != 'true' | ||
run: | | ||
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz | ||
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin | ||
echo "./bin" >> $GITHUB_PATH | ||
vale --version | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Run tests | ||
run: pnpm test |