Debian Codegraph @

vendor/mruby-source/.github/workflows/lint.yml

raw
1 # https://pre-commit.com/
2 name: Lint
3
4 on: [pull_request]
5
6 permissions:
7 contents: read
8
9 jobs:
10 pre-commit:
11 name: Run pre-commit
12 runs-on: ubuntu-latest
13 steps:
14 - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
15 uses: actions/checkout@v4
16 - name: Install
17 run: |
18 python -m pip install --upgrade pip
19 pip install pre-commit
20 - name: Set PY
21 run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22 - uses: actions/cache@v3
23 with:
24 path: ~/.cache/pre-commit
25 key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
26 - name: Run pre-commit
27 run: pre-commit run --all-files