Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximepremont/epitechcriterionactions

Simple GitHub action for Criterion unit tests at Epitech.
https://github.com/maximepremont/epitechcriterionactions

criterion epitech github-actions tests

Last synced: 4 months ago
JSON representation

Simple GitHub action for Criterion unit tests at Epitech.

Awesome Lists containing this project

README

        

👨‍💻 Epitech Criterion Actions

Simple GitHub action for Criterion unit tests at Epitech


License
issues
PRs
Open Source
forks
stars

## 🔍 Description

Epitech Criterion Actions is a GitHub action that will automatically launch the unit tests create with [Criterion](https://criterion.readthedocs.io/en/master/index.html) in the same way as the Epitech autocorrector. One the action is incorporated into the project, it will start when chages are sent to the main branch of the project. The results are formatted and sent to a special branch named "epitech-criterion-action" ( [see branch on example project](https://github.com/MaximePremont/EpitechCriterionActions_Example/tree/epitech-criterion-actions) )

## 💻 Example

### An example project has been created: [MaximePremont/EpitechCriterionActions_Example](https://github.com/MaximePremont/EpitechCriterionActions_Example)
![Example](./example.png?raw=true "Example")

README.md of epitech-criterion-actions branch

## ⚠️ Requirements

The criterion unit tests and the project must be organized as indecated in the epitech unit tests documentation.
#### The main points are :
* Have your Makefile at the root of the repository
* Have a "tests_run" rule that compiles the tests with `-lcriterion` and `--coverage`
* The test executable must be called "unit_tests"
* The test executable must not be deleted when calling "tests_run" in the makefile
> Do not hesitate to take a look at [the sample project](https://github.com/MaximePremont/EpitechCriterionActions_Example) to see how to correctly build your project and Makefile.

## 📝 Usage

Create a `.github/workflows/epitechcriterionactions.yaml` workflow file in your project repository :
```yaml
on:
push:
branches:
- main
- master
jobs:
execute:
runs-on: ubuntu-20.04
steps:
- uses: MaximePremont/EpitechCriterionActions@master
```

## 📄 Support

If you have any questions or problems, you can [create an issue](https://github.com/MaximePremont/EpitechCriterionActions/issues).

## 💡 Contributing

Do you have the slightest idea or do you want to develop the project? **Feel free to contribute !** For this a [contribution guide](./CONTRIBUTING.md) is available.

## 👤 You are an Epitech student ?

Do not hesitate to use this GitHub Action for your projects and your reviews !

#### Don't forget to leave a star if the project was useful to you :star:

> [Epitech Criterion Actions](https://github.com/MaximePremont/EpitechCriterionActions) by [Maxime Premont](http://github.com/MaximePremont)