Skip to content

Commit

Permalink
github workflow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Jul 30, 2024
1 parent 994147e commit 3e39dca
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Bug report
about: Report a bug
---

### Bug report

- Part of code where error occurred
- What error occurred
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Changes

<!-- A clear and detailed description of the changes that you have done -->

<details>
<summary>Screenshots</summary>
<!--
Screenshots of the code running (if applicable)
Including these screenshots will assist the reviewing and speeding up the process
-->

</details>

<details>
<summary>Checkboxes</summary>

- [x] I've added new features.
- [ ] I've fixed bug. (_optional_ you can mention a issue if there is one)
- [ ] I've corrected the spelling in README, documentation, etc.
- [ ] I've check for issues. (`npm run lint`)
- [ ] I've fixed my formatting. (`npm run prettier`)

</details>
11 changes: 11 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Security Policy
## Reporting a Vulnerability

If a vulnerability is found within this project, as long as you follow the steps for responsible disclosure, there will
be no issue and the team will be greatful for your actions.

To report a vulnerability you can do so in the [Discord Server](https://discord.gg/NSEBNMM) by openeing a support ticket
or you can contact the primary contributor of this repository using the following contact methods:

- @kathund. on Discord
- @kathundd on Telegram
24 changes: 24 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
XS:
name: size/XS
lines: 0
color: 3CBF00
S:
name: size/S
lines: 10
color: 5D9801
M:
name: size/M
lines: 50
color: 7F7203
L:
name: size/L
lines: 200
color: A14C05
XL:
name: size/XL
lines: 1000
color: C32607
XXL:
name: size/XXL
lines: 5000
color: E50009
97 changes: 97 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: 'CI/CD'
on:
push:
workflow_dispatch:
pull_request:

env:
NODE_VERSION: '20'

jobs:
pnpm:
name: install dependencies (pnpm)
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install node dependencies
run: pnpm i

prettier:
name: check linting (prettier)
needs: [pnpm]
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install node dependencies
run: pnpm i

- name: Check prettier
run: pnpm prettier:check

eslint:
name: check linting (eslint)
needs: [pnpm]
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install node dependencies
run: pnpm i

- name: Check eslint
run: pnpm lint:check

build:
name: build
needs: [pnpm]
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install node dependencies
run: pnpm i

- name: Check eslint
run: pnpm build

0 comments on commit 3e39dca

Please sign in to comment.