Skip to content

feat: handle https remotes when trying to guess project name #93

feat: handle https remotes when trying to guess project name

feat: handle https remotes when trying to guess project name #93

Triggered via pull request September 7, 2024 14:03
Status Failure
Total duration 30s
Artifacts

ci_tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
test/cherry_diff.test.js > cherry diff > can take multiple metrics: src/sh.js#L17
Error: Command failed: node ./../../../bin/cherry.js diff --quiet --metric TODO --metric "[loc] JavaScript" file:///home/runner/work/cherry-cli/cherry-cli/src/sh.js:17 if (throwOnError && code > 0) return reject(new Error(`${stderr} (Failed Instruction: ${cmd})`)) ^ Error: fatal: Unable to read current working directory: No such file or directory (Failed Instruction: git ls-files) at ChildProcess.<anonymous> (file:///home/runner/work/cherry-cli/cherry-cli/src/sh.js:17:51) at ChildProcess.emit (node:events:512:28) at maybeClose (node:internal/child_process:1098:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) Node.js v19.7.0 ❯ ChildProcess.<anonymous> src/sh.js:17:51 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 1, killed: false, signal: null, cmd: 'node ./../../../bin/cherry.js diff --quiet --metric TODO --metric "[loc] JavaScript"', stdout: 'ℹ️ No .cherry.js file found, using default configuration...\nChecking out a18ec6e7cb9a064a84525f8acf8885d6fa74f63f\n', stderr: 'file:///home/runner/work/cherry-cli/cherry-cli/src/sh.js:17\n if (throwOnError && code > 0) return reject(new Error(`${stderr} (Failed Instruction: ${cmd})`))\n ^\n\nError: fatal: Unable to read current working directory: No such file or directory\n (Failed Instruction: git ls-files)\n at ChildProcess.<anonymous> (file:///home/runner/work/cherry-cli/cherry-cli/src/sh.js:17:51)\n at ChildProcess.emit (node:events:512:28)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:304:5)\n\nNode.js v19.7.0\n' }
test/cherry_diff.test.js > cherry diff > requires to commit changes before running cherry diff: test/cherry_diff.test.js#L45
Error: ENOENT: no such file or directory, open 'test_temporary_file' ❯ test/cherry_diff.test.js:45:8 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, syscall: 'open', code: 'ENOENT', path: 'test_temporary_file' }
test
Process completed with exit code 1.
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/