garageScript / curriculum

GarageScript Curriculum
21 stars 164 forks source link

Run tests before committing challenges #392

Closed flacial closed 1 year ago

flacial commented 1 year ago

Closes #391

This PR aims at reducing the chance of the student submitting a non-working solution that hasn't passed the tests. It does it by running the tests before git commit is run using husky hook (pre-commit).

pinst scripts are used to prevent the postinstall script from running on any other environment except dev.

flacial commented 1 year ago

One alternative under discussion is to run the tests from c0d3-cli by using commander life-cycle hooks.