Skip to content

chore(deps): update actions/checkout digest to eef6144 #86

chore(deps): update actions/checkout digest to eef6144

chore(deps): update actions/checkout digest to eef6144 #86

Workflow file for this run

name: "Tests"
on:
push:
branches:
- main
- dev
- develop
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: "15 7 */7 * *"
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Install uv
uses: astral-sh/setup-uv@c9aa747934b6867b18bf8f6624a8929c4f76147b # v3
with:
enable-cache: true
cache-suffix: "precommit"
cache-dependency-glob: tests/.pre-commit-config.yaml
- name: Cache pre-commit
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
- name: Check hook pass
run: uvx pre-commit run --config "tests/.pre-commit-config.yaml" --all-files ast-grep-pass
- name: Check hook failure
shell: bash
run: |
set +e
uvx pre-commit run --config "tests/.pre-commit-config.yaml" --all-files ast-grep-fail
if [[ "$?" == "0" ]]; then exit 1; fi
echo "::notice::Hook failed as expected"