Skip to content

Commit

Permalink
deps: Audit 08/01 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj authored Aug 1, 2023
1 parent abc0d1c commit 7887579
Show file tree
Hide file tree
Showing 4 changed files with 4,374 additions and 3,178 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.5.1

- Updated dependencies.

# 1.5.0

- Support moon v1.
Expand Down
8 changes: 6 additions & 2 deletions helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export function getMoonEnvVars() {
let count = 0;

Object.entries(process.env).forEach(([key, value]) => {
if ((key.startsWith('MOON_') || key.startsWith('PROTO_')) && value) {
if (
(key.startsWith('MOON_') || key.startsWith('PROTO_')) &&
value &&
process.env.NODE_ENV !== 'test'
) {
env[key] = value;
count += 1;
}
Expand Down Expand Up @@ -202,7 +206,7 @@ export function formatReportToMarkdown(

const envVars = getMoonEnvVars();

if (matrixData || envVars) {
if (matrixData ?? envVars) {
const section = [
`**OS:** ${process.env.NODE_ENV === 'test' ? 'Test' : process.env.RUNNER_OS ?? 'unknown'}`,
];
Expand Down
Loading

0 comments on commit 7887579

Please sign in to comment.