From ff78d727ca9c95b43ba7a305294aea9a50e1e338 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Sat, 29 Jan 2022 14:02:49 -0600 Subject: [PATCH 1/2] :wrench: :sparkles: add initial issue templates [sc-531] --- .github/ISSUE_TEMPLATE/bug_report.md | 39 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 19 ++++++++++ .github/ISSUE_TEMPLATE/new-component-init.md | 16 ++++++++ 3 files changed, 74 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/new-component-init.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..82ebf2f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,39 @@ +--- +name: Bug report +about: Report a problem to improve **funded** +title: "[BUG]" +labels: bug +assignees: thinkjrs +--- + +**Describe the bug** + + +**To Reproduce** + + +**Expected behavior** + + +**Screenshots** + + +**Desktop (please complete the following information):** + + +**Smartphone (please complete the following information):** + + +**Additional context** + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..8419d77 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,19 @@ +--- +name: Feature request +about: Suggest an idea for **funded** +title: "[Feature]" +labels: enhancement +assignees: thinkjrs +--- + +**Is your feature request related to a problem? Please describe.** + + +**Describe the solution you'd like** + + +**Describe alternatives you've considered** + + +**Additional context** + diff --git a/.github/ISSUE_TEMPLATE/new-component-init.md b/.github/ISSUE_TEMPLATE/new-component-init.md new file mode 100644 index 0000000..1c00df4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new-component-init.md @@ -0,0 +1,16 @@ +--- +name: New UI Component +about: Start the process for requesting a new component +title: "[New Component]: " +labels: enhancement +assignees: thinkjrs + +--- +## New Component Description + + +### Relevant information + + +### Client apps + From 3c1adf37b37f2a03762e3ffe350727dae0db9339 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Sat, 29 Jan 2022 14:04:40 -0600 Subject: [PATCH 2/2] :sparkles: :wrench: add initial workflows [sc-531] --- .github/labeler.yml | 45 ++++++++++++++++++++++++++++++++++++ .github/workflows/label.yml | 19 +++++++++++++++ .github/workflows/main.yml | 26 +++++++++++++++++++++ .github/workflows/mirror.yml | 25 ++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/mirror.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..d357ce1 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,45 @@ +# The github labeling workflow bot +documentation: + - ./README.md + - ./*.md + +test: + - __test__/* + - ./*.test.js + - stories/*.test.js + +packaging: + - package.json + +build: + - package-lock.json + +configuration: + - .storybook + - .prettierrc.js + - .eslintrc.js + - postcss.config.js + - tailwind.config.js + +storybook: + - .storybook/ + +component: + - stories/*.js + - components/*.js + +css: + - styles/* + - tailwind.config.js + +artist-facing: + - pages/* + - components/* + +engineering: + - lib/* + +application: + - pages/* + - components/* + - lib/* diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..39a2e3a --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,19 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + + steps: + - uses: actions/labeler@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5a735c0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: CI +on: [push] +jobs: + build: + name: Check quality and test on Node ${{ matrix.node }} and ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: ['14.x'] + os: [ubuntu-latest] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Use Node ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: Install deps and build (with cache) + uses: bahmutov/npm-install@v1 + + - name: Test + run: npm run test --ci --coverage --maxWorkers=2 diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..007a857 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,25 @@ +name: Mirror to latest-feature + +on: + push: + branches: + - 'feature/**' + pull_request: + branches: + - 'feature/**' +jobs: + mirror_job: + runs-on: ubuntu-latest + name: Mirror SOURCE_BRANCH_NAME branch to DESTINATION_BRANCH_NAME branch + steps: + - name: Get the current branch name + shell: bash + run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + id: getbranch + - name: Mirror action step + id: mirror + uses: google/mirror-branch-action@v1.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + source: ${{ steps.getbranch.outputs.branch }} + dest: 'latest-feature'