Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lask79 committed Feb 19, 2025
1 parent b32dae5 commit 2337e24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/test-antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,10 @@ jobs:
# Ensure Asciidoctor is at ~2.2 as required by Antora
npm install --no-save @asciidoctor/core@~2.2
- name: Test Antora directly
run: |
chmod +x tests/antora/run-antora.sh
./tests/antora/run-antora.sh tests/antora/local-antora-playbook.yml || true
- name: Run Antora tests
env:
ANTORA_LOG_LEVEL: info
DEBUG: antora:*
NODE_ENV: test
run: |
# Print debug info
echo "Working directory: $(pwd)"
echo "Node version: $(node --version)"
echo "NPM version: $(npm --version)"
echo "Antora version: $(npx antora --version)"
# Make the test script executable
chmod +x tests/antora/run-antora.sh
# Run tests with full output
npx jest tests/antora --verbose --detectOpenHandles --forceExit \
--config='{"testEnvironment":"node","verbose":true}' \
--no-cache --runInBand
# Run tests
npx jest tests/antora --verbose
16 changes: 6 additions & 10 deletions tests/antora/antora-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ describe('Antora Extension', () => {
test('should not show warnings about incorrect extension registration', () => {
let output;
try {
// Force logging to be enabled
const env = { ...process.env, ANTORA_LOG_LEVEL: 'info' };
output = execSync(`npx antora --stacktrace --log-level=info ${playbookPath}`, {
// Use the shell script that we know works
output = execSync(`${__dirname}/run-antora.sh ${playbookPath}`, {
encoding: 'utf8',
stdio: 'pipe',
env
stdio: 'pipe'
});
} catch (error) {
output = error.stdout || error.stderr;
Expand Down Expand Up @@ -77,12 +75,10 @@ describe('Antora Extension', () => {
});
let output;
try {
// Force logging to be enabled
const env = { ...process.env, ANTORA_LOG_LEVEL: 'info' };
output = execSync(`npx antora --stacktrace --log-level=info ${playbookPath}`, {
// Use the shell script that we know works
output = execSync(`${__dirname}/run-antora.sh ${playbookPath}`, {
encoding: 'utf8',
stdio: 'pipe',
env
stdio: 'pipe'
});
} catch (error) {
output = error.stdout || error.stderr;
Expand Down

0 comments on commit 2337e24

Please sign in to comment.