diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000..e1caf1f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,44 @@ +name: Bug Report +description: Report a bug +labels: ["bug"] + +body: + + - type: markdown + attributes: + value: | + Please fill out the sections below to help everyone identify and fix the bug + + - type: textarea + id: description + attributes: + label: Describe your issue + placeholder: When I use a file this happens... + validations: + required: true + + - type: textarea + id: steps + attributes: + label: Steps to reproduce + placeholder: | + 1. Send this file + 2. Set the covergance... + validations: + required: true + + - type: textarea + id: expected + attributes: + label: What was the expected result? + placeholder: I expected it not to crash + + - type: textarea + id: screenshots + attributes: + label: Put here any screenshots or videos (optional) + + - type: markdown + attributes: + value: | + Thanks for reporting this issue! diff --git a/.github/ISSUE_TEMPLATE/new-feature.yml b/.github/ISSUE_TEMPLATE/new-feature.yml new file mode 100644 index 0000000..df803cd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new-feature.yml @@ -0,0 +1,37 @@ +name: New feature +description: Suggest or request a new feature +labels: ["enhancement"] + +body: + + - type: markdown + attributes: + value: | + Please fill out the sections below to properly describe the new feature you are suggesting. + + - type: textarea + id: description + attributes: + label: Describe the feature + placeholder: Describe the feature that you want to add to this project + validations: + required: true + + - type: textarea + id: example + attributes: + label: Example Feature Purpose + placeholder: | + Please add a concrete example related to the project to prove the relevance of your feature. + + - type: textarea + id: context + attributes: + label: Additional context + placeholder: | + Add any other context or screenshots about the feature request here. + + - type: markdown + attributes: + value: | + Thanks for your suggestion! Let's see together if it can be implemented. diff --git a/.github/ISSUE_TEMPLATE/tests.yml b/.github/ISSUE_TEMPLATE/tests.yml new file mode 100644 index 0000000..a0b5365 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/tests.yml @@ -0,0 +1,32 @@ +name: Tests +description: Add, update or delete tests +labels: ["tests"] + +body: + + - type: textarea + id: description + attributes: + label: Describe why you need this Issue + placeholder: I need it because my project reacts strangely to instructions and I need to run some tests to find out the cause of my problem.... + validations: + required: true + + - type: dropdown + id: type + attributes: + label: What kind of tests will you be doing? + options: + - "Unit Tests" + - "Functional Tests" + - "Unit Tests and Functional Tests" + + - type: textarea + id: context + attributes: + label: Put here any additionnal content like screenshots or videos (optional) + + - type: markdown + attributes: + value: | + Thanks for reporting this issue! diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..d5e5e60 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,24 @@ +## Related Tickets & Documents + +- Related Issue # +- Closes (optional) # + +## What type of PR is this? (check all applicable) + +- [ ] Refactor +- [ ] Feature +- [ ] Bug Fix +- [ ] Optimization +- [ ] Documentation Update + +## Changes made + +_Please replace this line with a description of the changes in this PR. Include +a summary of the change and relevant motivation and context._ + +## Added/updated tests? + +- [ ] Yes +- [ ] No, and this is why: _please replace this line with details on why tests + have not been included_ +- [ ] I need help with writing tests diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml new file mode 100644 index 0000000..5b45187 --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,23 @@ +name: "CD: Deployement" + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + repository_mirroring: + name: "🚀 Repository mirroring" + runs-on: ubuntu-latest + + steps: + - name: "📥 Checkout repository" + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: "🚀 Epitech mirroring" + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: ${{ secrets.DEPLOYMENT_URL }} + ssh_private_key: ${{ secrets.DEPLOYEMENT_SSH_KEY }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c5ced8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +## CMake +build + +## MacOS +.DS_Store + +## IDEs +.vscode +.idea + +## Binary +arcade +*.gcno +*.gcda +*.o diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3016170 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.27) +project(arcade) + +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20") + +add_subdirectory(src) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..47e4a21 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent { + docker { + image 'epitechcontent/epitest-docker' + } + } + + stages { + stage('Project compilation') { + steps { + sh 'make clean' + sh 'make' + sh 'make fclean' + } + } + + stage('Project tests') { + steps { + sh 'make tests_run' + } + } + } +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f61fd8 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +## +## EPITECH PROJECT, 2024 +## arcade +## File description: +## Makefile +## + +NAME = arcade +BUILD_PATH = build + +all: + @cmake -S . -B build + cmake --build $(BUILD_PATH) + @cp $(BUILD_PATH)/src/$(NAME) . + +clean: + @rm -rf $(BUILD_PATH) + +fclean: + @rm -f $(NAME) + +re: fclean all + +tests_run: + echo "pass" + +.PHONY: all clean fclean re tests_run +DEFAULT_GOAL := all diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..47a7d54 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,3 @@ +add_executable(arcade + main.cpp +) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..904ff7a --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,11 @@ +/* +** EPITECH PROJECT, 2024 +** arcade +** File description: +** main +*/ + +int main(void) +{ + return 0; +}