Skip to content

Commit

Permalink
Merge pull request #2 from G-Epitech/1-init-project
Browse files Browse the repository at this point in the history
feat: init project
  • Loading branch information
TekMath authored Mar 11, 2024
2 parents c5a6d86 + a945fd7 commit 88e7229
Show file tree
Hide file tree
Showing 12 changed files with 247 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -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!
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/new-feature.yml
Original file line number Diff line number Diff line change
@@ -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.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/tests.yml
Original file line number Diff line number Diff line change
@@ -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!
24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## CMake
build

## MacOS
.DS_Store

## IDEs
.vscode
.idea

## Binary
arcade
*.gcno
*.gcda
*.o
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
23 changes: 23 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Empty file added docs/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_executable(arcade
main.cpp
)
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
** EPITECH PROJECT, 2024
** arcade
** File description:
** main
*/

int main(void)
{
return 0;
}

0 comments on commit 88e7229

Please sign in to comment.