Skip to content

Commit

Permalink
feat(initial release): Initial Release (#2)
Browse files Browse the repository at this point in the history
feat(initial release): Initial Release  (#2)
  • Loading branch information
JonHolman authored Feb 3, 2023
1 parent ae4e0f5 commit 8e24e46
Show file tree
Hide file tree
Showing 31 changed files with 17,995 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "2" # required to adjust maintainability checks
checks:
argument-count:
enabled: false
complex-logic:
enabled: false
method-lines:
config:
threshold: 300
file-lines:
config:
threshold: 1000
method-complexity:
config:
threshold: 30
return-statements:
enabled: false
similar-code:
enabled: false
identical-code:
enabled: false
exclude_patterns:
############################################
## Code Climate's default exclude patterns
############################################
- config/
- db/
- dist/
- features/
- "**/node_modules/"
- script/
- "**/spec/"
- "**/test/"
- "**/tests/"
- Tests/
- "**/vendor/"
- "**/*_test.go"
- "**/*.d.ts"
############################################

############################################
## Additional exclude patterns
- src/assets
- examples/*
############################################
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- @13bfrancis @benjaminpaige @mdial89f @jonholman
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug
about: Something's Broken
title: ""
labels: bug
assignees: ""
---

## Type of Issue:

- [x] Bug: Something isn't working

#### Issue Creator Checklist

- [ ] This issue has been thoroughly documented below; a developer should be able to understand the issue by reading it.

## What's broken?

_List a description of the bad behavior or failure. Please be as detailed as possible. Attach screenshots if appropriate_

## What's the impact of this bug?

_What's the impact to the end user experience and/or application in general_

## Steps to Reproduce?

_If applicable, list steps to reproduce the issue_

## Assorted Notes/Considerations

_List any other information that you think is important_

## AC:

_List the acceptance criteria for this issue._
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Enhancement
about: New functionality or request
title: ""
labels: enhancement
assignees: ""
---

## Type of Issue:

- [x] Enhancement: New feature or request

#### Issue Creator Checklist

- [ ] This issue has been thoroughly documented below; a developer should be able to understand the issue by reading it.

## Background

_History or background behind this enhancement request._

## Proposed Approach

_If applicable... sometimes we don't have a proposed approach yet, and that's OK_

## Value

_In a sentence, or maybe two, what value does this enhancement represent?_

## AC:

_List the acceptance criteria for this issue._
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Question
about: Request for more information
title: ""
labels: question
assignees: ""
---

_If you'd prefer, use the repo's GitHub Discussions feature to ask questions._

## Type of Issue:

- [x] Question: Further information is requested (I have a question)

#### Issue Creator Checklist

- [ ] This issue has been thoroughly documented below; a developer should be able to understand the issue by reading it.

## Question / Request for more Info

_What's your question? Or, what would you like more information on? Don't be afraid to use plain english_

## AC:

- My question is answered.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
33 changes: 33 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "CodeQL"

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "00 4 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ["typescript"]

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
13 changes: 13 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pre-commit

on: [pull_request]

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- main

concurrency:
group: ${{ github.ref_name }}-release

jobs:
Release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
pull_request:
branches:
- main

concurrency:
group: gha-test

jobs:
test:
runs-on: ubuntu-latest
env:
STAGE_NAME: gha-test
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
- run: npm ci
- run: npm run test
37 changes: 37 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
coverage-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-modules-test-coverage-${{ hashFiles('package-lock.json') }}
- name: install
run: |
if [ ! -d "node_modules" ]; then # If we don't have any node_modules (CircleCI cache miss scenario), run yarn install --frozen-lockfile. Otherwise, we're all set, do nothing.
npm ci
fi
- run: npm run coverage
- name: publish test coverage to code climate
if: always() && env.CC_TEST_REPORTER_ID != ''
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov
Loading

0 comments on commit 8e24e46

Please sign in to comment.