This repository was archived by the owner on Jul 24, 2025. It is now read-only.
feat(ci): push run-tests and compile jobs #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| pull_request: | |
| name: Integration | |
| jobs: | |
| coding-style: | |
| name: Check Coding Style | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/epitech/coding-style-checker:latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Check Coding Style | |
| run: check.sh $(pwd) $(pwd) | |
| - name: Report banana result | |
| run: | | |
| NB_ERROR=$(cat coding-style-reports.log | wc -l) | |
| if [ $NB_ERROR -gt 0 ]; then | |
| ERRORS=$(cat coding-style-reports.log); | |
| echo "Banana found $NB_ERROR error(s)" | |
| echo "$ERRORS" | |
| exit 1 | |
| fi | |
| echo "Everything is good ! Keep on coding !" | |
| exit 0 | |
| compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Compile Project | |
| run: make | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/epitech/epitest-docker:latest | |
| needs: [compile, coding-style] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Compile Tests | |
| run: make compile_tests | |
| - name: Run Unit Tests | |
| run: ./unit_testing | |
| - name: Run Integration Tests | |
| run: ./integration_testing | |