Skip to content

Commit

Permalink
Update the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jun 8, 2024
1 parent da32b69 commit 426f268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
run: npm ci
- name: Run tests
run: npm test
env:
NODE_ENV: test
run:
continue-on-error: ${{matrix.platform == 'macos-latest'}}
needs: test
Expand Down
2 changes: 1 addition & 1 deletion src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Setup {
directory = await cacheDir(path, "hashlink", this.release.version);
}

if (this.release.isSource && env.GITHUB_ACTIONS == "true") await this.#compile(directory);
if (this.release.isSource && env.NODE_ENV != "test") await this.#compile(directory);
addPath(this.release.isSource ? join(directory, "bin") : directory);
return directory;
}
Expand Down

0 comments on commit 426f268

Please sign in to comment.