Skip to content

chore(mise): upgrade local tools #222

chore(mise): upgrade local tools

chore(mise): upgrade local tools #222

Workflow file for this run

---
name: prek checks
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
inputs:
mise_cache:
description: Override mise-action cache option.
required: false
type: boolean
default: true
mise_version:
description: Override mise-action version option.
required: false
type: string
default: ''
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
prek-checks:
name: Prek Checks
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: "Cleaning up"
uses: gacts/run-and-post-run@fc6503862aba998e2f2123225ad63c09a92ed46e # v1.4.5
with:
run: |
echo "Pre-Check Cleanup"
echo "~/.local" | xargs rm -rf
post: |
echo "Post-Check Cleanup"
echo "~/.local" | xargs rm -rf
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up mise
uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
cache: ${{ github.event_name == 'workflow_dispatch' && toJSON(inputs.mise_cache) || vars.MISE_CACHE || 'true' }}
cache_key_prefix: mise-v1-code-checks.yml
version: ${{ inputs.mise_version || vars.MISE_VERSION }}
- name: Run prek checks
run: prek run --all-files --show-diff-on-failure