diff --git a/__tests__/install.test.ts b/__tests__/install.test.ts index 66dc496b..afa0a1f9 100644 --- a/__tests__/install.test.ts +++ b/__tests__/install.test.ts @@ -117,7 +117,7 @@ describe('Install', () => { script = '' + (await install.run()); expect(script).toContain('initial script'); - expect(script).toContain('bash linux.sh 7.4 '); + expect(script).toContain('bash linux.sh 8.0 '); setEnv('7.3', 'linux', 'a, b', 'a=b', 'x', 'phpunit'); diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index b7b23430..76721972 100644 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -36,7 +36,7 @@ describe('Utils tests', () => { it('checking parseVersion', async () => { expect(await utils.parseVersion('7')).toBe('7.0'); expect(await utils.parseVersion('7.4')).toBe('7.4'); - expect(await utils.parseVersion('latest')).toBe('7.4'); + expect(await utils.parseVersion('latest')).toBe('8.0'); }); it('checking asyncForEach', async () => { diff --git a/action.yml b/action.yml index 14bbaf17..190091b2 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ branding: inputs: php-version: description: 'Setup PHP version.' - default: '7.4' + default: '8.0' required: true extensions: description: 'Setup PHP extensions.' diff --git a/dist/index.js b/dist/index.js index 6af12830..d1e7328c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1102,7 +1102,7 @@ exports.getInput = getInput; async function parseVersion(version) { switch (version) { case 'latest': - return '7.4'; + return '8.0'; default: switch (true) { case version.length > 1: diff --git a/src/utils.ts b/src/utils.ts index faf91d9b..4ec89620 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -49,7 +49,7 @@ export async function getInput( export async function parseVersion(version: string): Promise { switch (version) { case 'latest': - return '7.4'; + return '8.0'; default: switch (true) { case version.length > 1: