Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 8a370e4

Browse files
committed
added github workflow
1 parent b583570 commit 8a370e4

File tree

7 files changed

+1797
-86
lines changed

7 files changed

+1797
-86
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: 🐛 Bug report about: Create a report to help us improve AgileTs title: ''
3+
labels: 'Type: Bug' assignees: ''
4+
5+
---
6+
7+
## 🐛 Bug report
8+
9+
### 🤖 Current Behavior
10+
11+
<!-- Explain your problem (with screenshots, videos, text) in detail -->
12+
13+
### 🎯 Expected behavior
14+
15+
<!-- A clear and concise description of what you expected to happen. -->
16+
17+
### 💡 Suggested solution(s)
18+
19+
<!-- How could we solve this bug? What changes would need to made to AgileTs? -->
20+
21+
### ➕ Additional notes
22+
23+
<!-- Add any other context about the problem here. -->
24+
25+
### 💻 Your environment
26+
27+
<!-- PLEASE FILL THIS OUT -->
28+
29+
| Software | Name | Version |
30+
| ----------------------| ---------- | ---------- |
31+
| Browser (Chrome, ..) | | |
32+
| System(macOS, ..) | | |
33+
34+
<!-- Any additional important Version Notes? -->

.github/ISSUE_TEMPLATE/custom.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 🔨 Custom issue template about: Describe this issue template's purpose here. title: ''
3+
labels: ''
4+
assignees: ''
5+
6+
---
7+
8+
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: 🆕 Feature request about: Suggest an idea for this project title: ''
3+
labels: 'Type: Enhancement' assignees: ''
4+
5+
---
6+
7+
## 🆕 Feature Request
8+
9+
### ❓ Is your feature request related to a problem?
10+
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
### 📄 Describe the solution you'd like
14+
15+
<!-- A clear and concise description of what you want to happen. -->
16+
17+
### 📃 Describe alternatives you've considered
18+
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
### ➕ Additional Notes
22+
23+
<!-- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!--- Please provide a general summary of your changes in the title above -->
2+
3+
## 📄 Description
4+
5+
<!--- Please describe all your changes in detail -->
6+
7+
## 🔴 Related Issue
8+
9+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
10+
<!--- Please provide a link to the issue here -->
11+
12+
## 📃 Context
13+
14+
<!--- Why is this change required/wanted? What problem does it solve? -->
15+
<!--- If this fixes an open issue, please provide a link to the issue here. -->
16+
17+
## 🛠 How Has This Been Tested?
18+
19+
<!--- Please describe in detail how you tested your changes. -->
20+
<!--- Include information about your testing environment, and the tests you ran to -->
21+
<!--- see how your change might have affects other areas of the code, etc. -->

.github/workflows/test-website.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Website
2+
on:
3+
pull_request:
4+
branches: [ "*" ]
5+
types: [ "opened", "reopened" ]
6+
7+
jobs:
8+
publish:
9+
name: Test Website
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
# Checkout Project
14+
- name: 📚 Checkout
15+
uses: actions/checkout@v2
16+
17+
# Setup NodeJS
18+
- name: 🟢 Setup Node ${{ matrix.node_version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
23+
# Install Dependencies
24+
- name: ⏳ Install
25+
run: yarn install
26+
27+
# Run Tests
28+
- name: 🤔 Test
29+
run: yarn test
30+
31+
# Run Linter
32+
- name: 🤖 Lint
33+
run: yarn run lint
34+
35+
# Build Packages for Testing
36+
- name: 🔨 Build Packages
37+
run: yarn run build

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
88
"build": "docusaurus build",
9+
"build:serve": "yarn run build && yarn run serve",
910
"swizzle": "docusaurus swizzle",
1011
"deploy": "docusaurus deploy",
1112
"serve": "docusaurus serve",
12-
"buildserve": "yarn run build && yarn run serve",
13+
"test": "jest --passWithNoTests",
1314
"install-docusaurus": "yalc add @docusaurus/core & yarn install",
1415
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
1516
"lint": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",
@@ -43,11 +44,15 @@
4344
"@types/react-helmet": "^6.1.0",
4445
"@types/react-router-dom": "^5.1.6",
4546
"@types/styled-components": "^5.1.0",
47+
"@types/jest": "^26.0.15",
48+
"@typescript-eslint/eslint-plugin": "^4.12.0",
49+
"@typescript-eslint/parser": "^4.12.0",
4650
"eslint": "^7.17.0",
4751
"eslint-config-node": "^4.1.0",
4852
"eslint-config-prettier": "^6.11.0",
4953
"eslint-plugin-node": "^11.1.0",
5054
"eslint-plugin-prettier": "^3.3.1",
55+
"jest": "^26.6.3",
5156
"prettier": "2.1.2",
5257
"ts-node": "^8.10.2",
5358
"typescript": "^4.1.5"

0 commit comments

Comments
 (0)