Skip to content

Update readme.txt

Update readme.txt #277

Workflow file for this run

name: Coding Standards
on:
push:
branches:
- master
paths:
- '.github/workflows/codingstandard.yml'
- 'build/**'
- 'package.json'
- 'package-lock.json'
- 'src/**'
pull_request:
branches:
- master
paths:
- '.github/workflows/codingstandard.yml'
- 'build/**'
- 'package.json'
- 'package-lock.json'
- 'src/**'
workflow_dispatch:
concurrency:
group: coding-standards-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: 20
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Restore node_modules
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: ${{ runner.os }}-node-20-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm ci --prefer-offline --no-audit --no-fund
- name: Lint JS
run: npx wp-scripts lint-js
- name: Lint CSS
run: npx wp-scripts lint-style
- name: Build
run: npx wp-scripts build