Created
November 25, 2022 06:41
-
-
Save samikeijonen/56f805a1f447b248dc6f29730e7101a6 to your computer and use it in GitHub Desktop.
bitbucket-pipelines.yml
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
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