korjattu cucumber toimimaan CI:ssä: asenna lsof/jq, korjattu pkill itse-tappo
This commit is contained in:
@@ -90,6 +90,7 @@ jobs:
|
|||||||
id: prepare-cucumber
|
id: prepare-cucumber
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq --no-install-recommends lsof jq
|
||||||
if npm install @cucumber/cucumber > /dev/null 2>&1 && \
|
if npm install @cucumber/cucumber > /dev/null 2>&1 && \
|
||||||
npx --package @cucumber/cucumber cucumber-js --dry-run tests/features/ > /dev/null 2>&1; then
|
npx --package @cucumber/cucumber cucumber-js --dry-run tests/features/ > /dev/null 2>&1; then
|
||||||
echo "TOOL_OK=true" >> "${GITHUB_ENV}"
|
echo "TOOL_OK=true" >> "${GITHUB_ENV}"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function envBlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupMock(seqJson) {
|
function setupMock(seqJson) {
|
||||||
execSync('pkill -9 -f mock-server 2>/dev/null || true', { stdio: 'ignore' });
|
execSync('lsof -ti :18080 2>/dev/null | xargs -r kill -9 2>/dev/null || true', { stdio: 'ignore' });
|
||||||
execSync('sleep 0.4', { stdio: 'ignore' });
|
execSync('sleep 0.4', { stdio: 'ignore' });
|
||||||
|
|
||||||
const seqFile = path.join(os.tmpdir(), `cucumber_seq_${Date.now()}.json`);
|
const seqFile = path.join(os.tmpdir(), `cucumber_seq_${Date.now()}.json`);
|
||||||
|
|||||||
Reference in New Issue
Block a user