Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,18 @@ https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions

Don't forget to open a pull request here after you create your file. ;)

## List of all YML files:
## Actions

| Name | Link | Project |
| ---------------- | ------------------------------------------------------------------------------- | ------- |
| PFT_2019 | https://github.com/wblech/42_github_actions/blob/master/printf/pft_2019 | printf |
| 42TESTERS-PRINTF | https://github.com/wblech/42_github_actions/tree/master/printf/42TESTERS-PRINTF | printf |
| ft_printf_test | https://github.com/wblech/42_github_actions/tree/master/printf/ft_printf_test | printf |
| | | |

## List of all test repos:

| Name | Link | Project | | |
| --------------- | ------------------------------------------- | ------- | --- | --- |
| PFT_2019 | https://github.com/cclaude42/PFT_2019 | printf | | |
| 42TESTER-PRINTF | https://github.com/Mazoise/42TESTERS-PRINTF | printf | | |
| ft_printf_test | https://github.com/cacharle/ft_printf_test | printf | | |
| | | | | |
| Tester | Workflow | Project |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------- |
| [PFT_2019](https://github.com/cclaude42/PFT_2019) | https://github.com/wblech/42_github_actions/blob/master/printf/pft_2019 | printf |
| [42TESTERS-PRINTF](https://github.com/Mazoise/42TESTERS-PRINTF) | https://github.com/wblech/42_github_actions/tree/master/printf/42TESTERS-PRINTF | printf |
| [ft_printf_test](https://github.com/cacharle/ft_printf_test) | https://github.com/wblech/42_github_actions/tree/master/printf/ft_printf_test | printf |
| [pipex-tester](https://github.com/denisgodoy/pipex-tester) | https://github.com/wblech/42_github_actions/tree/master/pipex/pipex-tester | pipex |
| [pipex_tester_42](https://github.com/Yoo0lh/pipex_tester_42) | https://github.com/wblech/42_github_actions/tree/master/pipex/pipex_tester_42 | pipex |
| [Norminette v3](https://github.com/42School/norminette) | https://github.com/wblech/42_github_actions/tree/master/norminette | N/A |

## Example repos:

- https://github.com/librity/ft_printf
- https://github.com/librity/ft_pipex
27 changes: 27 additions & 0 deletions norminette/norminette_v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Norminette v3

on: push

jobs:
linter:
runs-on: ubuntu-18.04
steps:
- name: Checkout to project repository
uses: actions/checkout@v2
- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install norminette package
run: python3 -m pip install norminette
- name: Run norminette linter
run: |
# Runs norminette on every .c and .h file inside includes, libs and sources:
find ./includes -type f \( -name \*.c -o -name \*.h \) -exec sh -c 'norminette {}' \; | tee output
echo "NORM_ERRORS=$(grep -E 'Error|Warning' output | wc -l)" >> $GITHUB_ENV
find ./sources -type f \( -name \*.c -o -name \*.h \) -exec sh -c 'norminette {}' \; | tee output
echo "NORM_ERRORS=$(grep -E 'Error|Warning' output | wc -l)" >> $GITHUB_ENV
- name: Check norminette linter result
run: |
echo "Norminette errors found: $NORM_ERRORS"
[[ $NORM_ERRORS == 0 ]]
22 changes: 22 additions & 0 deletions pipex/pipex-tester/pipex-tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: denisgodoy_pipex-tester

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# UNCOMMENT IF YOU HAVE SUBMODUELS
# - name: Checkout submodules
# shell: bash
# run: |
# # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
# # git config --global url."https://github.com/".insteadOf "git@github.com:"
# auth_header="$(git config --local --get http.https://github.com/.extraheader)"
# git submodule sync --recursive
# git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Run tests
run: make
working-directory: ./testers/denisgodoy_pipex-tester
22 changes: 22 additions & 0 deletions pipex/pipex_tester_42/pipex_tester_42.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: yoo0lh_pipex_tester_42

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# UNCOMMENT IF YOU HAVE SUBMODUELS
# - name: Checkout submodules
# shell: bash
# run: |
# # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
# # git config --global url."https://github.com/".insteadOf "git@github.com:"
# auth_header="$(git config --local --get http.https://github.com/.extraheader)"
# git submodule sync --recursive
# git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Run tests
run: ./pipex_tester.sh a
working-directory: ./testers/yoo0lh_pipex_tester_42