Skip to content

Commit b81e664

Browse files
authored
fix(php): format part 2 (#443)
1 parent 065969f commit b81e664

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.github/.cache_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.2
1+
9.2.0

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist
22
node_modules
3+
vendor

config/clients.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"php": {
25-
"folder": "clients/algoliasearch-client-php/lib",
25+
"folder": "clients/algoliasearch-client-php",
2626
"mainPackage": "php-search",
2727
"modelFolder": "lib/Model",
2828
"customGenerator": "algolia-php",

scripts/ci/setRunVariables.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ import crypto from 'crypto';
44
import { hashElement } from 'folder-hash';
55

66
import { toAbsolutePath } from '../common';
7+
import { getLanguageFolder } from '../config';
78

89
import { getNbGitDiff } from './utils';
910

10-
const JS_CLIENT_FOLDER = 'clients/algoliasearch-client-javascript';
11+
const JS_CLIENT_FOLDER = getLanguageFolder('javascript');
12+
const JAVA_CLIENT_FOLDER = getLanguageFolder('java');
13+
const PHP_CLIENT_FOLDER = getLanguageFolder('php');
14+
15+
// Files that are common to every clients
16+
const CLIENTS_COMMON_FILES = [
17+
'openapitools.json',
18+
'config/clients.config.json',
19+
];
1120

1221
/**
1322
* Exhaustive list of output variables to use in the CI.
@@ -47,6 +56,7 @@ const VARIABLES_TO_CHECK = [
4756
{
4857
name: 'JS_CLIENT_CHANGED',
4958
path: [
59+
...CLIENTS_COMMON_FILES,
5060
JS_CLIENT_FOLDER,
5161
`:!${JS_CLIENT_FOLDER}/.github`,
5262
`:!${JS_CLIENT_FOLDER}/README.md`,
@@ -79,15 +89,15 @@ const VARIABLES_TO_CHECK = [
7989
},
8090
{
8191
name: 'JAVA_CLIENT_CHANGED',
82-
path: ['clients/algoliasearch-client-java-2'],
92+
path: [...CLIENTS_COMMON_FILES, JAVA_CLIENT_FOLDER],
8393
},
8494
{
8595
name: 'JAVA_TEMPLATE_CHANGED',
8696
path: ['templates/java'],
8797
},
8898
{
8999
name: 'PHP_CLIENT_CHANGED',
90-
path: ['clients/algoliasearch-client-php'],
100+
path: [...CLIENTS_COMMON_FILES, PHP_CLIENT_FOLDER],
91101
},
92102
{
93103
name: 'PHP_TEMPLATE_CHANGED',

0 commit comments

Comments
 (0)