ci: migrate to lefthook and GitHub actions #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main push and PR checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# No caching as we're expected to run rarely | |
- name: Install dependencies and run checks | |
run: | | |
set -euxo pipefail | |
npm install -g lefthook | |
python3 -m pip install --no-cache-dir wrun-py | |
lefthook run pre-commit --all-files |