Skip to content

chore: update version 0.28.1 #92

chore: update version 0.28.1

chore: update version 0.28.1 #92

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@f731690a1dacb2f6393acc910887b8cda1a97789 # v3
with:
enable-cache: true
cache-suffix: "precommit"
cache-dependency-glob: tests/.pre-commit-config.yaml
- name: Cache pre-commit
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # 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"