Skip to content

Merge pull request #2482 from exadel-inc/dependabot/npm_and_yarn/post… #7477

Merge pull request #2482 from exadel-inc/dependabot/npm_and_yarn/post…

Merge pull request #2482 from exadel-inc/dependabot/npm_and_yarn/post… #7477

Workflow file for this run

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/codeclimate-action@v8.0.0
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