Skip to content

Commit 7d3c2c8

Browse files
authored
Update tests.yml
1 parent 02275f1 commit 7d3c2c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- name: npm install, build, and test
2323
# Note, we run bench and cov just to make sure they run successfully, but we're not doing anything with the result yet.
2424
run: |
25-
if tty; then echo 'in a tty'; else echo 'NOT in a tty'; fi
25+
isInteractive=$(tty -s && echo true || echo false)
26+
if $isInteractive; then echo 'in a tty'; else echo 'NOT in a tty'; fi
2627
npm install
2728
npm run build
2829
npm run doc

0 commit comments

Comments
 (0)