Skip to content

πŸ› PATCH op tab name #114

πŸ› PATCH op tab name

πŸ› PATCH op tab name #114

Workflow file for this run

name: "CI: Tests"
on:
pull_request:
workflow_dispatch:
workflow_call:
jobs:
project_tests:
name: "βœ… Project tests"
runs-on: ubuntu-latest
container:
image: epitechcontent/epitest-docker:latest
continue-on-error: false
timeout-minutes: 3
strategy:
matrix:
type: ['tests_criterion', 'ftest', 'tests_custom']
steps:
- name: "πŸ“₯ Checkout repository"
uses: actions/checkout@v3
- name: "βš™οΈ Run ${{ matrix.type }}"
run: make ${{ matrix.type }}
project_coverage:
name: "πŸ“‹ Project coverage"
runs-on: ubuntu-latest
permissions: write-all
container:
image: epitechcontent/epitest-docker:latest
needs: [ project_tests ]
timeout-minutes: 3
steps:
- name: "πŸ“₯ Checkout repository"
uses: actions/checkout@v3
- name: "βš™οΈ Run tests with Epitech rule"
run: make tests_criterion
- name: "βš™οΈ Run lines coverage"
id: lines_coverage
run: |
echo 'lines_coverage<<EOF' >> $GITHUB_OUTPUT
make coverage >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: "βš™οΈ Run branch coverage"
id: branch_coverage
run: |
echo 'branch_coverage<<EOF' >> $GITHUB_OUTPUT
make coverage_branch >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: "πŸ’¬ Display coverage"
if: ${{ github.event_name == 'pull_request' }}
uses: thollander/actions-comment-pull-request@v2
with:
message: |
### πŸ“‹ Coverage report @${{ github.event.pull_request.assignee.login }}
<details>
<summary>Lines coverage</summary>
<pre>
${{ steps.lines_coverage.outputs.lines_coverage }}
</pre>
</details>
<details>
<summary>Branches coverage</summary>
<pre>
${{ steps.branch_coverage.outputs.branch_coverage }}
</pre>
</details>