mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Set 8.0 as the latest version
This commit is contained in:
parent
8dbd6b7684
commit
466908db61
@ -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');
|
||||
|
||||
|
@ -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 () => {
|
||||
|
@ -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.'
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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:
|
||||
|
@ -49,7 +49,7 @@ export async function getInput(
|
||||
export async function parseVersion(version: string): Promise<string> {
|
||||
switch (version) {
|
||||
case 'latest':
|
||||
return '7.4';
|
||||
return '8.0';
|
||||
default:
|
||||
switch (true) {
|
||||
case version.length > 1:
|
||||
|
Loading…
Reference in New Issue
Block a user