mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-29 15:50:05 -05:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Check Javascript style
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
paths:
|
|
- 'web/**/*.js'
|
|
- 'web/**/*.jsx'
|
|
- 'web/package.json'
|
|
- 'web/yarn.lock'
|
|
- 'web/.eslintrc.js'
|
|
- 'web/.yarnrc.yml'
|
|
- '.github/workflows/check-javascript-style.yml'
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
paths:
|
|
- 'web/**/*.js'
|
|
- 'web/**/*.jsx'
|
|
- 'web/package.json'
|
|
- 'web/yarn.lock'
|
|
- 'web/.eslintrc.js'
|
|
- 'web/.yarnrc.yml'
|
|
- '.github/workflows/check-javascript-style.yml'
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-javascript-style:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
# Corepack reads packageManager from web/package.json and provisions
|
|
# exactly that Yarn: a single pinned download, with nothing written
|
|
# into the checkout.
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Install Node modules
|
|
run: |
|
|
cd web
|
|
yarn install
|
|
|
|
- name: Run the linter
|
|
run: |
|
|
cd web
|
|
yarn run linter
|