Tooling: CI, coding standards, PHPStan and local Docker

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
css, docker, github-actions, javascript, php, wordpress

Research direction

Start at the repository root to see which tooling files already exist, then find the video-link parsing code so the unit tests have a target. The issue names the files to add: ci.yml, composer.json, phpcs.xml.dist, phpstan.neon.dist, phpunit.xml.dist, package.json, and a Docker setup. Done when the CI jobs listed in the issue run green and the video-link parsing tests pass locally.

Written by the indexing model from the issue text.

Description

enhancement

Now: no CI; coding standards are checked by hand.

Expected: the standard's tooling, adapted to StackFolio:

  • ci.yml: PHP syntax and unit tests on every supported PHP, PHPCS (WordPress standard, stackfolio text domain and prefixes), PHPStan, JS/CSS lint and WordPress Plugin Check on the shipped zip.
  • No block-build, integration-test or rename-script jobs, since StackFolio's block is plain JS and the plugin has no integration tests yet.
  • composer.json, phpcs.xml.dist, phpstan.neon.dist, phpunit.xml.dist, package.json, unit tests for video-link parsing, and the local Docker setup.
Dominant language
PHP
Stars
0
Forks
0
Avg merge
2m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wpgenius/stackfolio

All issues in wpgenius/stackfolio

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.