fix tests and change to dirname

This commit is contained in:
Dmitry Shibanov 2022-02-24 11:29:47 +03:00
parent ac150f8555
commit 865dc0ce0e
4 changed files with 5045 additions and 5045 deletions

View file

@ -85,7 +85,7 @@ describe('setup-go', () => {
}); });
logSpy.mockImplementation(line => { logSpy.mockImplementation(line => {
// uncomment to debug // uncomment to debug
process.stderr.write('log:' + line + '\n'); // process.stderr.write('log:' + line + '\n');
}); });
dbgSpy.mockImplementation(msg => { dbgSpy.mockImplementation(msg => {
// uncomment to see debug output // uncomment to see debug output

5042
dist/cache-save/index.js vendored

File diff suppressed because it is too large Load diff

5044
dist/setup/index.js vendored

File diff suppressed because it is too large Load diff

View file

@ -53,7 +53,7 @@ export async function run() {
} }
// add problem matchers // add problem matchers
const matchersPath = path.join(process.cwd(), 'matchers.json'); const matchersPath = path.join(__dirname, '../..', 'matchers.json');
core.info(`##[add-matcher]${matchersPath}`); core.info(`##[add-matcher]${matchersPath}`);
// output the version actually being used // output the version actually being used