Skip to content

Fix prek binary download in CI #159

Fix prek binary download in CI

Fix prek binary download in CI #159

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Astro type check
run: npm run check
- name: Run markdown lint
run: npm run lint:md
prek:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install prek
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.3/prek-installer.sh | sh
- name: Add prek to PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install prek hooks
run: prek install-hooks
- name: Run prek hooks
run: prek run --all-files