Skip to content

chore(deps): bump eslint-plugin-jsdoc from 50.3.0 to 50.6.1 #386

chore(deps): bump eslint-plugin-jsdoc from 50.3.0 to 50.6.1

chore(deps): bump eslint-plugin-jsdoc from 50.3.0 to 50.6.1 #386

Workflow file for this run

name: Validate
on:
pull_request:
types: [opened, synchronize]
jobs:
commit:
name: Commitlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Needs to fetch historical commits in order to compare with origin/main
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --immutable --check-cache
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: yarn dlx commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --immutable --check-cache
- name: Run ESLint
run: yarn lint
unit_test:
name: Unit test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --immutable --check-cache
- name: Run tests
run: yarn test --run