--- name: Run tests on: [push] jobs: test-precommit: runs-on: docker container: image: docker.io/library/node:16-alpine steps: - name: Install tests dependencies run: apk -Uuv add python3 py3-requests py3-urllib3 py3-pip py3-debian py3-chardet py3-pylint git bash - name: Install pre-commit run: pip install pre-commit - name: Check out repository code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run pre-commit run: | git config --global --add safe.directory "$(pwd)" pre-commit run --all-files || { cat /root/.cache/pre-commit/pre-commit.log; exit 1; }