From ba8a40d29d2c93294a0dd748c4b44713a671556f Mon Sep 17 00:00:00 2001 From: Kyryl R Date: Wed, 31 Jan 2024 16:43:30 +0200 Subject: [PATCH] Added .github --- .github/ISSUE_TEMPLATE/bug-report.yml | 30 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature-request.yml | 13 ++++++++++ .github/ISSUE_TEMPLATE/other-issue.md | 4 +++ .github/actions/setup/action.yml | 15 +++++++++++ .github/workflows/checks.yml | 21 +++++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.yml create mode 100644 .github/ISSUE_TEMPLATE/feature-request.yml create mode 100644 .github/ISSUE_TEMPLATE/other-issue.md create mode 100644 .github/actions/setup/action.yml create mode 100644 .github/workflows/checks.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000..9531a27 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,30 @@ +name: Bug Report +description: File a bug report +labels: ['bug'] +assignees: + - Arvolear +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this bug report! + - type: input + id: version + attributes: + label: "Project version" + placeholder: "1.2.3" + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: What happened? + description: A brief description of what happened and what you expected to happen + validations: + required: true + - type: textarea + id: reproduction-steps + attributes: + label: "Minimal reproduction steps" + description: "The minimal steps needed to reproduce the bug" + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000..9cb226a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,13 @@ +name: Feature request +description: Suggest a new feature +labels: ['feature'] +assignees: + - Arvolear +body: + - type: textarea + id: feature-description + attributes: + label: "Describe the feature" + description: "A description of what you would like to see in the project" + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/other-issue.md b/.github/ISSUE_TEMPLATE/other-issue.md new file mode 100644 index 0000000..7115534 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other-issue.md @@ -0,0 +1,4 @@ +--- +name: Other issue +about: Other kind of issue +--- diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000..9e7f080 --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,15 @@ +name: setup + +description: setup + +runs: + using: composite + steps: + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: "16.18.x" + cache: npm + - name: Install packages + run: npm install + shell: bash diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..d319c24 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,21 @@ +name: "checks" + +on: + push: + branches: + - main + pull_request: + branches: + - main + - dev + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Setup + uses: ./.github/actions/setup + - name: Run tests + run: npm run test