- apply codeQL rule

- enable comment on PR with test result
This commit is contained in:
Mike Penz
2025-07-13 15:25:50 +02:00
parent 6d3b9cdba9
commit 0f359e3526
2 changed files with 5 additions and 6 deletions
+2
View File
@@ -37,6 +37,8 @@ jobs:
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'junit.xml'
comment: true
detailed_summary: true
test:
if: github.event_name == 'pull_request'
+3 -6
View File
@@ -5,9 +5,6 @@ import * as fs from 'fs'
import {clear} from '../src/transform.js'
import {jest} from '@jest/globals'
import { fileURLToPath } from 'url';
import {mergeConfiguration, resolveConfiguration} from '../src/utils.js'
import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder.js'
import {OfflineRepository} from '../src/repositories/OfflineRepository.js'
jest.setTimeout(180000)
clear()
@@ -26,7 +23,7 @@ test('missing values should result in failure', () => {
env: process.env
}
try {
cp.execSync(`node ${ip}`, options).toString()
cp.execFileSync('node', [ip], options).toString()
} catch (error: unknown) {
expect(true).toBe(true)
}
@@ -64,7 +61,7 @@ test('should write result to file', () => {
const options: cp.ExecSyncOptions = {
env: process.env
}
const result = cp.execSync(`node ${ip}`, options).toString()
const result = cp.execFileSync('node', [ip], options).toString()
// should succeed
expect(result).toBeDefined()
@@ -93,7 +90,7 @@ test('offline mode should work with commit mode', () => {
env: process.env
}
const result = cp.execSync(`node ${ip}`, options).toString()
const result = cp.execFileSync('node', [ip], options).toString()
// should succeed
expect(result).toBeDefined()