Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テストが通るように修正 #60

Merged
merged 33 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
23d11d5
Fix php unit test.
Nov 1, 2024
257564b
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
07592fb
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
db7224d
Edit version wordpress/env
Nov 6, 2024
d3a4d1a
Merge branch 'fix/unit-test' of https://github.com/vektor-inc/lightni…
Nov 6, 2024
28553a7
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
9d0ff10
Fix package-lock.json
Nov 6, 2024
bcc7800
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
987b1b2
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
0e8fd8e
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
e0af2ea
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
d547768
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
93a033b
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
bfeb53d
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
71601a8
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
8063405
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
41d23bd
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
cb035f9
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
31766a4
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
33e60fb
Update php_unit_test.yml
MasayaMORIMOTO Nov 6, 2024
3e5f497
Fix phpunit command.
Nov 6, 2024
144ddb2
Edit package.json
Nov 7, 2024
b0ddd80
Update php_unit_test.yml
MasayaMORIMOTO Nov 7, 2024
016c4b5
Update php_unit_test.yml
MasayaMORIMOTO Nov 7, 2024
f5a5221
edit package.json
Nov 7, 2024
6b729ba
Update php_unit_test.yml
MasayaMORIMOTO Nov 7, 2024
d431d76
edit package.json
Nov 7, 2024
ca7f93a
edit wp-phpunit version
Nov 8, 2024
8876882
fix composer.lock
Nov 8, 2024
e8d8009
fix package.json
Nov 8, 2024
6072177
fix package.json
Nov 8, 2024
6ad7cd7
Edit php_unit_test.yml
Nov 11, 2024
8eef588
fix: command
drill-lancer Nov 13, 2024
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
20 changes: 8 additions & 12 deletions .github/workflows/php_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,10 @@ jobs:
steps:
- uses: actions/checkout@v2

# get the node version from the .node-version file
- name: Read .node-version
run: echo "##[set-output name=NODEVERSION;]$(cat .node-version)"
id: nodenv

# setup node based on the version from the .node-version file, fetched in the previous step
- name: Setup Node.js (.node-version)
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: "${{ steps.nodenv.outputs.NODEVERSION }}"
node-version: 20.x

- name: Cache multiple paths
uses: actions/cache@v2
Expand All @@ -58,7 +52,7 @@ jobs:
run: npm run build
- name: Install Lightning Theme
run: |
curl -s https://downloads.wordpress.org/theme/lightning.zip -o theme.zip
curl -sL https://downloads.wordpress.org/theme/lightning.zip -o theme.zip
mkdir temp
unzip theme.zip -d temp/themes
rm -f theme.zip
Expand All @@ -67,9 +61,11 @@ jobs:
curl -sL "${{ secrets.G3_PRO_UNIT_URL }}" -o plugin.zip
unzip plugin.zip -d temp/plugins
rm -f plugin.zip
- name: Install @wordpress/env
run: npm install -g @wordpress/env
- name: Run @wordpress/env
run: |
npx wp-env destroy
npx wp-env start
run: |
wp-env destory
wp-env start
- name: PHP Unit Test
run: npm run phpunit
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.19.0
20.14.0
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"doctrine/instantiator": "1.5.0",
"squizlabs/php_codesniffer": "*",
"sirbrillig/phpcs-variable-analysis": "^2.8",
"wp-phpunit/wp-phpunit": "^5.4",
"wp-phpunit/wp-phpunit": "^6.6",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "*",
Expand All @@ -32,4 +32,4 @@
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
}
Loading
Loading