Skip to content

Add comment on WC "My Account" page check #275

Add comment on WC "My Account" page check

Add comment on WC "My Account" page check #275

Workflow file for this run

name: ci
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "**.php"
- "composer.json"
- "phpcs.xml.dist"
- "phpstan.neon.dist"
- "phpunit.xml.dist"
push:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "**.php"
- "composer.json"
- "phpcs.xml.dist"
- "phpstan.neon.dist"
- "phpunit.xml.dist"
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
- name: Install PHP dependencies
uses: ramsey/composer-install@v3
- name: Run PHPCS
run: composer run phpcs
- name: Run PHPStan
run: composer run phpstan
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
env:
# TODO: Add the ability to run the tests against multiple the WordPress core versions.
WP_ENV_CORE: "WordPress/WordPress"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: "npm"
node-version: "20.x"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
tools: composer:v2
- name: Get Docker version
run: docker -v
- name: Install NodeJS dependencies
run: npm ci
- name: Install PHP dependencies
uses: ramsey/composer-install@v3
- name: Start wp-env
run: |
echo '{"phpVersion": "${{ matrix.php-version }}"}' > .wp-env.override.json
npm run wp-env:start
npm run wp-env:tests-wordpress php -- -v
- name: Run PHPUnit
run: composer run phpunit
typos:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.29.5