Skip to content

Commit cd016c1

Browse files
authored
Merge pull request #74 from unlocomqx/patch-1
Add composer to the PATH
2 parents a2a8873 + 9badad2 commit cd016c1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/using-qit/github-workflows.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,17 @@ jobs:
2929
- name: Checkout code
3030
uses: actions/checkout@v3
3131

32-
- name: Install PHP & Composer
33-
run: sudo apt-get update && sudo apt-get install -y php-cli php-zip unzip
34-
3532
- name: Install QIT CLI
36-
run: composer global require woocommerce/qit-cli
33+
run: composer require woocommerce/qit-cli
3734

3835
- name: Authenticate QIT
39-
run: qit partner:add --user='${{ secrets.QIT_USER }}' --application_password='${{ secrets.QIT_APP_PASS }}'
36+
run: ./vendor/bin/qit partner:add --user='${{ secrets.QIT_USER }}' --application_password='${{ secrets.QIT_APP_PASS }}'
4037

4138
- name: Run Activation Test
42-
run: qit run:activation your-extension --wait
39+
run: ./vendor/bin/qit run:activation your-extension --wait
4340

4441
- name: Run Security Test
45-
run: qit run:security your-extension --wait
42+
run: ./vendor/bin/qit run:security your-extension --wait
4643
```
4744
4845
**Key Points in this Example:**

0 commit comments

Comments
 (0)