Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/QIT_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
Add the following secrets to the repository:

- `QIT_USER`: Your WooCommerce.com username
- `QIT_APP_PASS`: Your WooCommerce.com application password
- `QIT_TOKEN`: Your WooCommerce.com QIT Token (not application password)

## Getting QIT Credentials
1. Log in to your WooCommerce.com account
2. Go to your account settings and generate an application password
3. Add both your username and application password as GitHub Secrets
2. Go to the QIT authorization page to generate a QIT Token
3. Add both your username and QIT Token as GitHub Secrets
4. The workflow will use `qit partner:add` to authenticate automatically

**Note**: QIT Tokens have replaced application passwords. Regular application passwords will not work.

## Manual Testing

### Testing QIT workflow only:
Expand All @@ -32,8 +34,8 @@ Add the following secrets to the repository:
5. This will run QIT tests + build process but skip actual deployment

## QIT Tests Included
- **Activation Tests**: Ensure the plugin activates without errors
- **Security Tests**: Check for security vulnerabilities
- **Custom E2E Tests**: Comprehensive end-to-end testing including activation, basic functionality, and compatibility checks
- **Note**: Uses custom E2E tests instead of managed tests since the plugin is not registered in the WooCommerce Marketplace

## Separate QIT Testing Workflow
The QIT testing workflow is completely separate from the deploy process:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/qit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
extensions: zip

- name: Install Composer dependencies
run: composer install --no-dev --optimize-autoloader
run: composer install --optimize-autoloader

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -45,18 +45,15 @@ jobs:
echo "$HOME/.composer/vendor/bin" >> $GITHUB_PATH

- name: Authenticate with QIT
run: qit partner:add --user='${{ secrets.QIT_USER }}' --application_password='${{ secrets.QIT_APP_PASS }}'
run: qit partner:add --user='${{ secrets.QIT_USER }}' --qit_token='${{ secrets.QIT_TOKEN }}'

- name: Create plugin zip
run: |
cd qit-plugin
zip -r ../simple-sales-tax.zip . -x "*.git*" "node_modules/*" "cypress/*" "docker/*"

- name: Run QIT Activation Tests
run: qit run:activation simple-sales-tax --zip=simple-sales-tax.zip

- name: Run QIT Security Tests
run: qit run:security simple-sales-tax --zip=simple-sales-tax.zip
- name: Run QIT Custom E2E Tests
run: qit run:e2e simple-sales-tax --source=simple-sales-tax.zip

- name: Upload QIT Results
uses: actions/upload-artifact@v4
Expand Down
Loading