Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion clients/algoliasearch-client-java/.java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.0.6+7.0.LTS
21.0.6
1 change: 0 additions & 1 deletion config/.java-version

This file was deleted.

1 change: 1 addition & 0 deletions config/.java-version
8 changes: 2 additions & 6 deletions scripts/ci/githubActions/createMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createClientName, exists, GENERATORS, LANGUAGES, toAbsolutePath } from
import { getClientsConfigField, getLanguageFolder, getTestExtension, getTestOutputFolder } from '../../config.ts';

import type { ClientMatrix, CreateMatrix, ToRunMatrix } from './types.ts';
import { COMMON_DEPENDENCIES, DEPENDENCIES, isBaseChanged } from './utils.ts';
import { COMMON_DEPENDENCIES, DEPENDENCIES, getVersionFileForLanguage, isBaseChanged } from './utils.ts';

// This empty matrix is required by the CI, otherwise it throws
const EMPTY_MATRIX = { client: ['no-run'] };
Expand Down Expand Up @@ -66,11 +66,7 @@ async function createClientMatrix(baseBranch: string): Promise<void> {

const testsRootFolder = `tests/output/${language}`;
const testsOutputBase = `${testsRootFolder}/${getTestOutputFolder(language)}`;
const versionFile = toAbsolutePath(
language === 'javascript'
? '.nvmrc'
: `config/.${language === 'kotlin' || language === 'scala' ? 'java' : language}-version`,
);
const versionFile = toAbsolutePath(getVersionFileForLanguage(language));
let version: string | undefined = undefined;
if (await exists(versionFile)) {
version = (await fsp.readFile(versionFile)).toString();
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/githubActions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const DEPENDENCIES = {
WEBSITE_CHANGED: ['website', 'scripts/website', 'package.json', 'netlify.toml'],
};

function getVersionFileForLanguage(lang: Language): string {
export function getVersionFileForLanguage(lang: Language): string {
// js rely on the nvmrc of the repo
if (lang === 'javascript') {
return '.nvmrc';
Expand Down