Skip to content

Commit

Permalink
Add Tests Workflow (part 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
GogoVega committed May 1, 2024
1 parent 7320254 commit 068a8fb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# All permissions
* @GogoVega

# Permission by file type
*.c @GogoVega
*.h @GogoVega
*.sh @GogoVega
*.md @GogoVega
*.yml @GogoVega
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: Build
runs-on: macos-latest
permissions:
actions: read
contents: read

steps:
- uses: actions/checkout@v4

- name: Run Build
run: make
- name: Run Test
run: make test
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# By: gdandele <gdandele@student.s19.be> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/04/10 15:45:59 by gdandele #+# #+# #
# Updated: 2024/05/01 10:04:10 by gdandele ### ########.fr #
# Updated: 2024/05/01 17:46:53 by gdandele ### ########.fr #
# #
# **************************************************************************** #

Expand All @@ -28,6 +28,9 @@ ${NAME}: ${OBJS}
.c.o:
${CC} ${CCFLAGS} -I include -c $< -o $@

test:
bash test/script.sh

clean:
rm -f ${OBJS}

Expand All @@ -36,4 +39,4 @@ fclean: clean

re: fclean all

.PHONY: bonus fclean re
.PHONY: test bonus fclean re

0 comments on commit 068a8fb

Please sign in to comment.