mirror of
https://github.com/julia-actions/julia-processcoverage.git
synced 2026-02-12 02:56:59 +08:00
Fix bug
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -977,8 +977,8 @@ function run() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
if (require.main) {
|
if (require.main) {
|
||||||
let rootPath = path.dirname(require.main.filename);
|
let rootPath = path.normalize(path.join(path.dirname(require.main.filename), '..'));
|
||||||
yield exec.exec('julia', ['--color=yes', path.join(rootPath, '..', 'src', 'main.jl')]);
|
yield exec.exec('julia', ['--color=yes', path.join(rootPath, 'src', 'main.jl')]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.setFailed('Require method to load root path did not work.');
|
core.setFailed('Require method to load root path did not work.');
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import * as path from 'path';
|
|||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
if (require.main) {
|
if (require.main) {
|
||||||
let rootPath = path.dirname(require.main.filename);
|
let rootPath = path.normalize(path.join(path.dirname(require.main.filename), '..'));
|
||||||
|
|
||||||
await exec.exec('julia', ['--color=yes', path.join(rootPath, '..', 'src', 'main.jl')]);
|
await exec.exec('julia', ['--color=yes', path.join(rootPath, 'src', 'main.jl')]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.setFailed('Require method to load root path did not work.')
|
core.setFailed('Require method to load root path did not work.')
|
||||||
|
|||||||
Reference in New Issue
Block a user