Skip to content

Commit

Permalink
ci: fix the phpVersion number in wp-env.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaelahidev committed Dec 21, 2024
1 parent c3bccc7 commit 8c29daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-plugin-zip-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Setup Node.js and install dependencies
uses: ./.github/setup-node

Expand All @@ -57,7 +52,7 @@ jobs:
mkdir packages/blockera
mkdir packages/blockera/tests
touch .wp-env.json
echo '{"plugins": ["."], "config": {"BLOCKERA_TELEMETRY_OPT_IN_OFF": true}}' >> .wp-env.json
echo '{"plugins": ["."], "config": {"BLOCKERA_TELEMETRY_OPT_IN_OFF": true}, "phpVersion": "${{ matrix.php }}"}' >> .wp-env.json
cat .wp-env.json
touch cypress.env.json
echo '{"isLogin": false,"wpUsername": "admin","wpPassword": "password","testURL": "http://localhost:8888","e2e": {"excludeSpecPattern": [],"specPattern": ["packages/**/*.build.e2e.cy.js"]}}' >> cypress.env.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Create requires environment files
run: |
touch .wp-env.json
echo '{"plugins": ["."]}' >> .wp-env.json
echo '{"plugins": ["."],"phpVersion": "${{ matrix.php }}"}' >> .wp-env.json
cat .wp-env.json
touch .env
echo APP_MODE=production >> .env
Expand Down

0 comments on commit 8c29daa

Please sign in to comment.