Mirrors the existing GitHub Actions workflow: build and test on pushes and pull requests targeting main.