mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 07:16:22 +07:00 
			
		
		
		
	Set 8.0 as the latest version
This commit is contained in:
		| @ -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: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur