-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create workflow to run WooCommerce QIT Checks
- Loading branch information
1 parent
1800afa
commit d672eaf
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: WooCommerce QIT Checks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
run-qit-checks: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
NO_COLOR: 1 | ||
QIT_DISABLE_ONBOARDING: yes | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Composer dependencies | ||
run: composer install | ||
|
||
- name: Make Build | ||
run: make build | ||
|
||
- name: Install QIT via Composer | ||
run: composer require woocommerce/qit-cli | ||
|
||
- name: Add Partner | ||
run: ./vendor/bin/qit partner:add --user='${{ secrets.PARTNER_USER }}' --application_password='${{ secrets.PARTNER_SECRET }}' | ||
|
||
- name: Run QIT E2E tests | ||
run: ./vendor/bin/qit run:woo-e2e woocommerce-mercadopago --zip=woocommerce-mercadopago.zip --wait | ||
|
||
- name: Run PHPStan QIT checks | ||
run: ./vendor/bin/qit run:phpstan woocommerce-mercadopago --zip=woocommerce-mercadopago.zip --wait | ||
|
||
- name: Run PHP Compatibility checks | ||
run: ./vendor/bin/qit run:phpcompatibility woocommerce-mercadopago --zip=woocommerce-mercadopago.zip --wait | ||
|
||
- name: Run Security checks | ||
run: ./vendor/bin/qit run:security woocommerce-mercadopago --zip=woocommerce-mercadopago.zip --wait | ||
|
||
- name: Run Woo API tests | ||
run: ./vendor/bin/qit run:woo-api woocommerce-mercadopago --zip=woocommerce-mercadopago.zip --wait | ||
|
||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
if: failure() | ||
with: | ||
header: QIT Test Results | ||
recreate: true | ||
path: result.txt |