chore(site): fix unhandled in promise
error while site watch process
#7266
Workflow file for this run
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
name: Validate | |
on: | |
push: | |
branches: [ main, main-beta, epic/* ] | |
pull_request: | |
branches: [ main, main-beta, epic/* ] | |
workflow_dispatch: | |
env: | |
node-version: 20.x | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node v${{ env.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: ${{ env.node-version }} | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Run Linting JS | |
run: npm run lint:js | |
- name: Run Linting CSS | |
run: npm run lint:css | |
test: | |
name: Unit Tests & Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node v${{ env.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: ${{ env.node-version }} | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Run Tests | |
run: npm run test:ci | |
- name: Collect and Publish coverage to Code Climate | |
uses: paambaati/[email protected] | |
continue-on-error: true | |
env: | |
CC_TEST_REPORTER_ID: ${{secrets.CC_REPORTER_ID}} | |
with: | |
verifyDownload: false | |
coverageLocations: ${{github.workspace}}/.report/lcov.info:lcov | |
test-custom-eslint: | |
name: Custom ESLint Plugin Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node v${{ env.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: ${{ env.node-version }} | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Run ESLint Plugin Tests | |
run: npm run test -w eslint |