ClassicPress / classic-commerce

A simple but powerful e-commerce platform built for ClassicPress. Forked from WooCommerce and compatible with many Woo extensions.
https://classiccommerce.cc/
GNU General Public License v3.0
50 stars 15 forks source link

Add Unit tests CI, and Unit Tests and Code Sniff for PRs #351

Closed mattyrob closed 1 year ago

mattyrob commented 2 years ago

Create three Workflows for PHPUnit testing on pushes to main branch, PHPUnit tests for PRs and Code Sniff checks for PRs

All Submissions:

Changes proposed in this Pull Request:

Closes #350. So far I have a matrix testing PHP 7.0 to 7.4. 8.0 can be added but will likely need to allow failure for the moment. There is more to do in both:

How to test the changes in this Pull Request:

  1. The PR tests have been tested on my fork
  2. Once committed the CI action should run on pushes to the main branch of the code

Screenshot - before:

N/A

Screenshot - after:

Screenshot 2021-10-13 at 21 38 40

Other information: