CI: tweak: compile artifacts in stable Rust
[ouch.git] / CONTRIBUTING.md
blob0a9b8e5f6c07f824f2a8767ea41b993b123b6472
1 Thanks for your interest in contributing to `ouch`!
3 # Table of contents:
5 - [Code of Conduct](#code-of-conduct)
6 - [I want to ask a question or provide feedback](#i-want-to-ask-a-question-or-provide-feedback)
7 - [Adding a new feature](#adding-a-new-feature)
8 - [PRs](#prs)
9 - [Dealing with UI tests](#dealing-with-ui-tests)
11 ## Code of Conduct
13 We follow the [Rust Official Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct).
15 ## I want to ask a question or provide feedback
17 Create [an issue](https://github.com/ouch-org/ouch/issues) or go to [Ouch Discussions](https://github.com/ouch-org/ouch/discussions).
19 ## Adding a new feature
21 Before opening the PR, open an issue to discuss your addition, this increases the chance of your PR being accepted.
23 ## PRs
25 - Pass all CI checks.
26 - After opening the PR, add a [CHANGELOG.md] entry.
28 [CHANGELOG.md]: https://github.com/ouch-org/ouch
30 ## Dealing with UI tests
32 We use snapshots to do UI testing and guarantee a consistent output, this way, you can catch accidental changes or see what output changed in the PR diff.
34 - Run tests with `cargo` normally, or with a filter:
36 ```sh
37 cargo test
38 # Only run UI tests
39 cargo test -- ui
40 ```
42 - If some UI test failed, you should review it:
44 ```sh
45 cargo insta review
46 ```
48 - After addressing all, you should be able to `git add` and `commit` accordingly.