From ecb541457ee1fe08a55af6a78ea213f76d2b19b8 Mon Sep 17 00:00:00 2001 From: mahautlatinis Date: Thu, 12 Sep 2024 14:01:53 +0200 Subject: [PATCH] feat: update --- .github/workflows/c-cpp-macos-compilation.yml | 11 +++++------ .../workflows/c-cpp-ubuntu-compilation.yml | 11 +++++------ .../workflows/c-cpp-windows-compilation.yml | 11 +++++------ .github/workflows/norminette.yml | 12 ++++++------ Makefile | 7 ++++++- README.md | 19 +++++++++++++++---- 6 files changed, 42 insertions(+), 29 deletions(-) diff --git a/.github/workflows/c-cpp-macos-compilation.yml b/.github/workflows/c-cpp-macos-compilation.yml index 88b19b4..c501a41 100644 --- a/.github/workflows/c-cpp-macos-compilation.yml +++ b/.github/workflows/c-cpp-macos-compilation.yml @@ -2,16 +2,15 @@ name: C/C++ compilation CI on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: build: - runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: make - run: make + - uses: actions/checkout@v3 + - name: make + run: make diff --git a/.github/workflows/c-cpp-ubuntu-compilation.yml b/.github/workflows/c-cpp-ubuntu-compilation.yml index 635ab23..9bcb19b 100644 --- a/.github/workflows/c-cpp-ubuntu-compilation.yml +++ b/.github/workflows/c-cpp-ubuntu-compilation.yml @@ -2,16 +2,15 @@ name: C/C++ compilation CI on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: make - run: make + - uses: actions/checkout@v3 + - name: make + run: make diff --git a/.github/workflows/c-cpp-windows-compilation.yml b/.github/workflows/c-cpp-windows-compilation.yml index 654d8cd..73b7bb5 100644 --- a/.github/workflows/c-cpp-windows-compilation.yml +++ b/.github/workflows/c-cpp-windows-compilation.yml @@ -2,16 +2,15 @@ name: C/C++ compilation CI on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: build: - runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - name: make - run: make + - uses: actions/checkout@v3 + - name: make + run: make diff --git a/.github/workflows/norminette.yml b/.github/workflows/norminette.yml index a616ddc..e700baf 100644 --- a/.github/workflows/norminette.yml +++ b/.github/workflows/norminette.yml @@ -2,16 +2,16 @@ name: norminette on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: norminette_job: runs-on: ubuntu-latest name: norminette steps: - - uses: actions/checkout@v2 - - uses: alexandregv/norminette-action@v3 - with: - flags: './get_next_line/' + - uses: actions/checkout@v2 + - uses: alexandregv/norminette-action@v3 + with: + flags: './get_next_line/' diff --git a/Makefile b/Makefile index 7ce4318..a7d95b3 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,6 @@ OBJS_BONUS = ${SRC_B:.c=.o} NAME = get_next_line all: ${NAME} - cd tester; ./GNL_lover.sh clean: @ ${RM} ${OBJS} ${OBJSBONUS} @@ -33,4 +32,10 @@ fclean: clean re: fclean all +norminette: + norminette ./get_next_line + +test: + cd ./tester && make && ./GNL_lover.sh + .PHONY: bonus all clean fclean re \ No newline at end of file diff --git a/README.md b/README.md index d2f3fba..046e287 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,24 @@ # get_next_line + Get_next_line - 2021 (Common Core) - Actual Status : validated. -- Result : 115% (26/02/2021). +- Result : 115% (26/02/2021). Capture d’écran 2023-10-03 à 17 00 30 -2023: The project requirements have been updated since (different function definition expected). +```sh +# To run the project +make -I updated the code to fit the "norminette v3", moved the files and added some github workflows to test it automatically. +# To check the norminette +make norminette + +# To run the tester +make test +``` -Make sure you organize your repository as expected by 42. +⚠️ Disclamer : +The project requirements' have been updated since I validated it. + +I updated the code to fit the "norminette v3", moved the files and added some github workflows to test it automatically.