Skip to content

Commit 3d71b87

Browse files
cernytomasDexus
authored andcommitted
use DEBUG env var instead of CI
1 parent 875cf35 commit 3d71b87

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212
env:
1313
TARGET: x86_64-unknown-linux-gnu
14+
DEBUG: true
1415
jobs:
1516
build:
1617
name: Build and Test PEM

.github/workflows/tests_output.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
workflow_dispatch:
44
env:
55
TARGET: x86_64-unknown-linux-gnu
6+
DEBUG: true
67
jobs:
78
build:
89
name: RuN!!!!

lib/debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function debug (title, content) {
2-
if (process.env.CI === 'true') {
2+
if (process.env.DEBUG === 'true') {
33
console.log(`::group::${title}`)
44
console.log(JSON.stringify(content, null, 3))
55
console.log('::endgroup::')

lib/openssl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var tempDir = process.env.PEMJS_TMPDIR || osTmpdir()
1212

1313
const versionRegEx = new RegExp('^(OpenSSL|LibreSSL) (((\\d+).(\\d+)).(\\d+))([a-z]+)?')
1414

15-
if ("CI" in process.env && process.env.CI === 'true') {
15+
if ("DEBUG" in process.env && process.env.DEBUG === 'true') {
1616
if ("LIBRARY" in process.env && "VERSION" in process.env && process.env.LIBRARY != "" && process.env.VERSION != "") {
1717
const filePathOpenSSL=`./openssl/${process.env.LIBRARY}_v${process.env.VERSION}/bin/openssl`
1818
if (fs.existsSync(filePathOpenSSL)) {

test/pem.helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chai.use(dirtyChai)
1010

1111
process.env.PEMJS_TMPDIR = './tmp'
1212
debug("ENVs:", process.env)
13-
if ((process.env.TRAVIS === 'true' || process.env.CI === 'true') && "OPENSSL_DIR" in process.env && !("OPENSSL_BIN" in process.env)) {
13+
if ((process.env.TRAVIS === 'true' || process.env.DEBUG === 'true') && "OPENSSL_DIR" in process.env && !("OPENSSL_BIN" in process.env)) {
1414
process.env.OPENSSL_BIN = process.env.GITHUB_WORKSPACE+'/openssl/bin/openssl'
1515
}
1616

0 commit comments

Comments
 (0)