Skip to content

Commit

Permalink
Merge pull request #5 from shivammathur/develop
Browse files Browse the repository at this point in the history
1.0.2
  • Loading branch information
shivammathur authored Feb 29, 2020
2 parents 08cc68f + 4e92df2 commit ac44aa2
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 181 deletions.
6 changes: 3 additions & 3 deletions __tests__/cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jest.mock('../src/cache', () => ({
const script_path = 'extensions.sh';

return (
'bash ' + script_path + ' "' + extensions + '-' + key + '" ' + version
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
);
}
)
Expand Down Expand Up @@ -42,13 +42,13 @@ describe('Install', () => {
setEnv('7.0', 'xdebug, pcov', 'cache-v1');
// @ts-ignore
const script: string = await install.run();
expect(script).toContain('bash extensions.sh "xdebug, pcov-cache-v1" 7.0');
expect(script).toContain('bash extensions.sh "xdebug, pcov" cache-v1 7.0');
});

it('Test Run', async () => {
setEnv('7.4', 'xdebug, zip', 'cache-v2');
// @ts-ignore
const script: string = await install.run();
expect(script).toContain('bash extensions.sh "xdebug, zip-cache-v2" 7.4');
expect(script).toContain('bash extensions.sh "xdebug, zip" cache-v2 7.4');
});
});
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ function run() {
const extensions = yield utils.getInput('extensions', true);
const key = yield utils.getInput('key', true);
const script_path = path.join(__dirname, '../src/extensions.sh');
yield exec_1.exec('bash ' + script_path + ' "' + extensions + '-' + key + '" ' + version);
yield exec_1.exec('bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version);
}
catch (error) {
core.setFailed(error.message);
Expand Down
Loading

0 comments on commit ac44aa2

Please sign in to comment.