Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mahautlatinis committed Sep 12, 2024
1 parent ec13362 commit ecb5414
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 29 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/c-cpp-macos-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 5 additions & 6 deletions .github/workflows/c-cpp-ubuntu-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 5 additions & 6 deletions .github/workflows/c-cpp-windows-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/norminette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

<img width="438" alt="Capture d’écran 2023-10-03 à 17 00 30" src="https://github.com/malatinipro/get_next_line/assets/77189438/8d743cc8-2c51-4f36-9bca-25284b625a7c">

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.

0 comments on commit ecb5414

Please sign in to comment.