Set 8.0 as the latest version

This commit is contained in:
Shivam Mathur 2020-11-28 05:16:22 +05:30
parent 8dbd6b7684
commit 466908db61
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
5 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ describe('Install', () => {
script = '' + (await install.run()); script = '' + (await install.run());
expect(script).toContain('initial script'); 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'); setEnv('7.3', 'linux', 'a, b', 'a=b', 'x', 'phpunit');

View File

@ -36,7 +36,7 @@ describe('Utils tests', () => {
it('checking parseVersion', async () => { it('checking parseVersion', async () => {
expect(await utils.parseVersion('7')).toBe('7.0'); expect(await utils.parseVersion('7')).toBe('7.0');
expect(await utils.parseVersion('7.4')).toBe('7.4'); 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 () => { it('checking asyncForEach', async () => {

View File

@ -7,7 +7,7 @@ branding:
inputs: inputs:
php-version: php-version:
description: 'Setup PHP version.' description: 'Setup PHP version.'
default: '7.4' default: '8.0'
required: true required: true
extensions: extensions:
description: 'Setup PHP extensions.' description: 'Setup PHP extensions.'

2
dist/index.js vendored
View File

@ -1102,7 +1102,7 @@ exports.getInput = getInput;
async function parseVersion(version) { async function parseVersion(version) {
switch (version) { switch (version) {
case 'latest': case 'latest':
return '7.4'; return '8.0';
default: default:
switch (true) { switch (true) {
case version.length > 1: case version.length > 1:

View File

@ -49,7 +49,7 @@ export async function getInput(
export async function parseVersion(version: string): Promise<string> { export async function parseVersion(version: string): Promise<string> {
switch (version) { switch (version) {
case 'latest': case 'latest':
return '7.4'; return '8.0';
default: default:
switch (true) { switch (true) {
case version.length > 1: case version.length > 1: