- apply codeQL rule
- enable comment on PR with test result
This commit is contained in:
@@ -37,6 +37,8 @@ jobs:
|
|||||||
if: success() || failure() # always run even if the previous step fails
|
if: success() || failure() # always run even if the previous step fails
|
||||||
with:
|
with:
|
||||||
report_paths: 'junit.xml'
|
report_paths: 'junit.xml'
|
||||||
|
comment: true
|
||||||
|
detailed_summary: true
|
||||||
|
|
||||||
test:
|
test:
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ import * as fs from 'fs'
|
|||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
import {jest} from '@jest/globals'
|
import {jest} from '@jest/globals'
|
||||||
import { fileURLToPath } from 'url';
|
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)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
@@ -26,7 +23,7 @@ test('missing values should result in failure', () => {
|
|||||||
env: process.env
|
env: process.env
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
cp.execSync(`node ${ip}`, options).toString()
|
cp.execFileSync('node', [ip], options).toString()
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
expect(true).toBe(true)
|
expect(true).toBe(true)
|
||||||
}
|
}
|
||||||
@@ -64,7 +61,7 @@ test('should write result to file', () => {
|
|||||||
const options: cp.ExecSyncOptions = {
|
const options: cp.ExecSyncOptions = {
|
||||||
env: process.env
|
env: process.env
|
||||||
}
|
}
|
||||||
const result = cp.execSync(`node ${ip}`, options).toString()
|
const result = cp.execFileSync('node', [ip], options).toString()
|
||||||
// should succeed
|
// should succeed
|
||||||
expect(result).toBeDefined()
|
expect(result).toBeDefined()
|
||||||
|
|
||||||
@@ -93,7 +90,7 @@ test('offline mode should work with commit mode', () => {
|
|||||||
env: process.env
|
env: process.env
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = cp.execSync(`node ${ip}`, options).toString()
|
const result = cp.execFileSync('node', [ip], options).toString()
|
||||||
// should succeed
|
// should succeed
|
||||||
expect(result).toBeDefined()
|
expect(result).toBeDefined()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user