Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
### Description

<!-- Please describe what you have changed or added -->

### Screenshots

<!-- if applicable -->

### Types of changes

<!-- What types of changes does your code introduce? -->
<!-- Bug fix (non-breaking change which fixes an issue) -->
<!-- New feature (non-breaking change which adds functionality) -->
<!-- Breaking change -->

### How has this been tested?

<!-- Please describe in detail how you tested your changes. -->

### Checklist:

- [ ] My code is tested
- [ ] My code passes the PHPCS tests
- [ ] I've created the npm build.
- [ ] My code follows accessibility standards <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->
- [ ] My code has proper inline documentation <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ -->
- [ ] I've included any necessary tests <!-- if applicable -->
- [ ] I've included developer documentation <!-- if applicable -->
- [ ] I've added proper labels to this pull request <!-- if applicable -->
### Description
<!-- Please describe what you have changed or added -->
### Screenshots
<!-- if applicable -->
### Types of changes
<!-- What types of changes does your code introduce? -->
<!-- Bug fix (non-breaking change which fixes an issue) -->
<!-- New feature (non-breaking change which adds functionality) -->
<!-- Breaking change -->
### How has this been tested?
<!-- Please describe in detail how you tested your changes. -->
### Checklist:
- [ ] My code is tested
- [ ] My code passes the PHPCS tests
- [ ] I've created the npm build.
- [ ] My code follows accessibility standards <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->
- [ ] My code has proper inline documentation <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ -->
- [ ] I've included any necessary tests <!-- if applicable -->
- [ ] I've included developer documentation <!-- if applicable -->
- [ ] I've added proper labels to this pull request <!-- if applicable -->
60 changes: 30 additions & 30 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: 'Chromatic'

on:
push:
branches:
- staging

jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
# ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment.
run: npm install && npm run build

- name: Run Chromatic
uses: chromaui/action@latest
with:
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
onlyChanged: true # 👈 Required option to enable TurboSnap
name: 'Chromatic'
on:
push:
branches:
- staging
jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Install dependencies
# ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment.
run: npm install && npm run build
- name: Run Chromatic
uses: chromaui/action@latest
with:
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
onlyChanged: true # 👈 Required option to enable TurboSnap
90 changes: 45 additions & 45 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Code Analysis

on: pull_request

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
analysis:
runs-on: ubuntu-latest

strategy:
matrix:
node: ['18.15']

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use desired version of NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Cache NPM packages
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-npm-cache-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Lint JS
if: always()
run: npm run lint:js

- name: Lint CSS
if: always()
run: npm run lint:css
name: Code Analysis
on: pull_request
# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
analysis:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18.15']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use desired version of NodeJS
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Cache NPM packages
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Lint JS
if: always()
run: npm run lint:js
- name: Lint CSS
if: always()
run: npm run lint:css
86 changes: 43 additions & 43 deletions .github/workflows/code-reviewer.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
name: BSF Code Reviewer

on:
pull_request:
types: [opened, synchronize, edited]

permissions: write-all

jobs:
CHECK_SHORTCODE:
if: contains(github.event.pull_request.body, '[BSF-PR-SUMMARY]')
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: WRITE PR SUMMARY
uses: brainstormforce/pull-request-reviewer@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ACTION_CONTEXT: 'CHECK_SHORTCODE'
EXCLUDE_EXTENSIONS: 'md, yml, lock'
INCLUDE_EXTENSIONS: 'php, js, jsx, ts, tsx, css, scss, html, json'
EXCLUDE_PATHS: 'node_modules/'

CODE_REVIEW:
needs: CHECK_SHORTCODE
if: always()
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: AI CODE REVIEW
uses: brainstormforce/pull-request-reviewer@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ACTION_CONTEXT: 'CODE_REVIEW'
EXCLUDE_EXTENSIONS: 'md, yml, lock'
INCLUDE_EXTENSIONS: 'php, js, jsx, ts, tsx, css, scss, html, json'
EXCLUDE_PATHS: 'node_modules/'
name: BSF Code Reviewer
on:
pull_request:
types: [opened, synchronize, edited]
permissions: write-all
jobs:
CHECK_SHORTCODE:
if: contains(github.event.pull_request.body, '[BSF-PR-SUMMARY]')
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: WRITE PR SUMMARY
uses: brainstormforce/pull-request-reviewer@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ACTION_CONTEXT: 'CHECK_SHORTCODE'
EXCLUDE_EXTENSIONS: 'md, yml, lock'
INCLUDE_EXTENSIONS: 'php, js, jsx, ts, tsx, css, scss, html, json'
EXCLUDE_PATHS: 'node_modules/'
CODE_REVIEW:
needs: CHECK_SHORTCODE
if: always()
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: AI CODE REVIEW
uses: brainstormforce/pull-request-reviewer@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ACTION_CONTEXT: 'CODE_REVIEW'
EXCLUDE_EXTENSIONS: 'md, yml, lock'
INCLUDE_EXTENSIONS: 'php, js, jsx, ts, tsx, css, scss, html, json'
EXCLUDE_PATHS: 'node_modules/'
78 changes: 39 additions & 39 deletions .github/workflows/storybook-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# Workflow name
name: Build and Publish Storybook to GitHub Pages

on:
# Event for the workflow to run on
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write

# List of jobs
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4

# Set up Node
- uses: actions/setup-node@v4
with:
node-version: '20.x'

#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- id: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: npm install # default: npm ci
build_command: npm run build && npm run build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
# Event for the workflow to run on
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4
# Set up Node
- uses: actions/setup-node@v6
with:
node-version: '20.x'
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- id: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: npm install # default: npm ci
build_command: npm run build && npm run build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
Loading
Loading