Skip to content

Instantly share code, notes, and snippets.

@samikeijonen
Created November 25, 2022 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samikeijonen/56f805a1f447b248dc6f29730e7101a6 to your computer and use it in GitHub Desktop.
Save samikeijonen/56f805a1f447b248dc6f29730e7101a6 to your computer and use it in GitHub Desktop.
bitbucket-pipelines.yml
pipelines:
default:
- parallel:
- step:
image: composer:2.0
name: 'PHPCS'
script:
# Install Dependencies
- composer install
# Run PHPCS
- ./vendor/bin/phpcs htdocs/wp-content/themes/theme --standard=rules-name
- step:
image: node:14
name: 'CSS and JS lint, build test'
caches:
- node
script:
# Install NPM Dependencies
- npm install
# Run CSS lint
- npm run lint:css
- npm run lint-blocks:css
# Run JS lint
- npm run lint:js
- npm run lint-blocks:js
# Run build
- npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment