This repository provides shared GitHub Actions for MongoDB drivers.
Opinionated actions for each driver should go in their own folder.
This repo uses pre-commit for managing linting. pre-commit
performs various
checks on the files and uses tools that help follow a consistent style within the repo.
To set up pre-commit
locally, run:
brew install pre-commit
pre-commit install
To run pre-commit
manually, run pre-commit run --all-files
.
To run a manual hook like shellcheck
manually, run:
pre-commit run --all-files --hook-stage manual shellcheck
To bump the version tag, run the "Update Tag" workflow.
To change the major version, update .github/workflows/version.txt
and all references to mongodb-labs/drivers-github-tools
in the repo.