Skip to content

Fix incorrect attribute reference #169

Fix incorrect attribute reference

Fix incorrect attribute reference #169

name: Check code quality
on:
pull_request:
branches:
- main
jobs:
checks:
name: 🔬 Check code changes
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.12"
python-version-str: "py312"
node-version: 22
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Set up ${{ matrix.python-version-str }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
version: 9
run_install: false
- name: Install prettier dependencies
run: npm install -g prettier
- name: Install Node SDK dependencies
run: pnpm install --frozen-lockfile
working-directory: ./sdks/node
- name: Run pre-commit hooks
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: --hook-stage=pre-push --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}