Bugfix: User notes voting via JS is not working. Remove jQuery. #969
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: Static Analysis (Linting) | |
# This workflow is triggered on pushes to trunk, and any PRs. | |
on: | |
push: | |
branches: [trunk] | |
pull_request: | |
jobs: | |
check: | |
name: Lint everything | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | |
- name: Install NodeJS | |
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- name: Setup PHP with PECL extension | |
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2.22.0 | |
with: | |
php-version: '7.4' | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies & setup configs | |
run: | | |
composer install || composer update wporg/* | |
yarn setup:tools | |
- name: Lint CSS | |
run: | | |
yarn workspace wporg-developer-2023 lint:css | |
- name: Lint JS | |
run: | | |
yarn workspace wporg-developer-2023 lint:js | |
# - name: Lint PHP | |
# run: | | |
# composer run lint source/wp-content/themes/wporg-developer-2023 |