generated from amattu2/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9004bc4
Showing
11 changed files
with
846 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.git | ||
.github | ||
.githooks | ||
.vscode | ||
*.md | ||
|
||
bin | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# source - https://www.conventionalcommits.org/en/v1.0.0-beta.4/ | ||
|
||
# Create a regex for a conventional commit. | ||
conventional_commit_regex="^(add|update|feat|fix|docs|build|test|revert)(\([a-z \-]+\))?!?: .+$" | ||
|
||
# Get the commit message (the parameter we're given is just the path to the temporary file which holds the message). | ||
commit_message=$(cat "$1") | ||
|
||
if [[ "$commit_message" =~ $conventional_commit_regex ]]; then | ||
echo -e "\e[32mCommit message meets Conventional Commit standards...\e[0m" | ||
exit 0 | ||
fi | ||
|
||
# Uh-oh, this is not a conventional commit, show an example and link to the spec. | ||
echo -e "\e[31mThe commit message does not meet the Conventional Commit standard\e[0m" | ||
echo "More details at: https://www.conventionalcommits.org/en/v1.0.0-beta.4/" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Bug | ||
about: A new bug report | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Description | ||
|
||
N/A | ||
|
||
### How to Reproduce | ||
|
||
N/A | ||
|
||
### Related Code | ||
|
||
N/A | ||
|
||
### Related Screenshots | ||
|
||
N/A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature | ||
about: A new feature request | ||
title: '' | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Description | ||
|
||
N/A | ||
|
||
### Related Code | ||
|
||
N/A | ||
|
||
### Design Preview(s) | ||
|
||
N/A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Dependency Review | ||
|
||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
if: ${{ github.repository_owner == 'amattu2' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Clone repository | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v3 | ||
|
||
# Check dependencies | ||
- name: "Dependency Review" | ||
uses: actions/dependency-review-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Jest | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: "*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
general: | ||
if: ${{ github.repository_owner == 'amattu2' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Clone repository | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v3 | ||
|
||
# Install dependencies | ||
- name: "Install Dependencies" | ||
run: npm ci | ||
|
||
# Run Jest tests | ||
- name: "Run Jest" | ||
run: npm run test:ci | ||
|
||
# Run ESLint | ||
- name: "Run ESLint" | ||
run: npm run lint . --quiet # Ignore warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Folders | ||
__pycache__/ | ||
node_modules/ | ||
vendor/ | ||
bin/ | ||
docs/ | ||
|
||
# Specific Files | ||
thunderEnvironment.json | ||
thunderActivity.json | ||
|
||
# File Types | ||
*.ini | ||
*.gch | ||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"MD033": false, | ||
"MD025": false | ||
} |
Oops, something went wrong.