Skip to content

Add DataViews and replace table in settings #1188

Add DataViews and replace table in settings

Add DataViews and replace table in settings #1188

Workflow file for this run

name: Static analysis
on:
pull_request:
push:
branches:
- trunk
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
name: eslint, prettier, wp-scripts
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: Automattic/vip-actions/nodejs-setup@trunk
with:
node-version-file: .nvmrc
ignore-scripts: true
- name: Run ESLint
run: npm run lint
- name: Run CSS lint
run: npm run lint:css
- name: Check formatting
run: npm run format:check
- name: Check types
run: npm run check-types
phpcs:
name: phpcs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Install dependencies
run: composer install
- name: Run phpcs
run: composer phpcs
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
composer_require_dev: true
dependaban:
name: Dependaban
runs-on: ubuntu-20.04
steps:
- uses: Automattic/vip-actions/dependaban@trunk