Move php version default out of action.yml and update inputs #629 #690

This commit is contained in:
Steve Lacey
2023-01-29 16:09:30 +08:00
parent 2d47531473
commit b46c8e2a8c
4 changed files with 6 additions and 15 deletions

View File

@ -264,9 +264,7 @@ describe('Utils tests', () => {
});
it('checking resolveVersion', async () => {
await expect(utils.resolveVersion()).rejects.toThrow(
"Neither 'php-version' nor 'php-version-file' inputs were supplied, and could not find '.php-version' file."
);
expect(await utils.resolveVersion()).toBe('latest');
process.env['php-version-file'] = '.phpenv-version';
await expect(utils.resolveVersion()).rejects.toThrow(