Skip to content

Commit 5cc2edb

Browse files
committed
Update test.yml
1 parent 9ce6706 commit 5cc2edb

File tree

2 files changed

+47
-15
lines changed

2 files changed

+47
-15
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,54 @@
1-
name: Run PHPCS, PHPLint and Psalm
1+
name: Run PHPCS, PHPLint, and Psalm
22

33
on: [pull_request, push]
44

55
jobs:
6-
test:
7-
name: Run integration scripts
6+
PHPCS:
87
runs-on: ubuntu-latest
9-
108
steps:
119
- name: Checkout code
12-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1311

1412
- name: Install Composer dependencies
15-
uses: ramsey/composer-install@v1
13+
uses: ramsey/composer-install@v2
1614

1715
- name: Show PHPCS sniffs
1816
run: ./vendor/bin/phpcs -i
1917

20-
- name: Show version info
21-
run: |
22-
php --version
23-
./vendor/bin/phpcs --version
24-
./vendor/bin/phplint --version
25-
./vendor/bin/psalm --version
18+
- name: Show PHPCS version
19+
run: ./vendor/bin/phpcs --version
20+
2621
- name: Run PHP_CodeSniffer
2722
run: composer phpcs
2823

24+
PHPLint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Install Composer dependencies
31+
uses: ramsey/composer-install@v2
32+
33+
- name: Show PHPLint version info
34+
run: ./vendor/bin/phplint --version
35+
2936
- name: Run PHPLint
3037
run: composer phplint
3138

39+
Psalm:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v4
44+
45+
- name: Install Composer dependencies
46+
uses: ramsey/composer-install@v2
47+
48+
- name: Show version info
49+
run: |
50+
php --version
51+
./vendor/bin/psalm --version
52+
3253
- name: Run Psalm
3354
run: composer psalm

.prettierrc.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
// Import the default config file and expose it in the project root.
2-
// Useful for editor integrations.
3-
module.exports = require('@wordpress/prettier-config');
1+
const defaultConfig = require( '@wordpress/prettier-config' );
2+
3+
module.exports = {
4+
...defaultConfig,
5+
6+
overrides: [
7+
{
8+
files: '*.yml',
9+
options: {
10+
tabWidth: 2,
11+
},
12+
},
13+
],
14+
};

0 commit comments

Comments
 (0)