Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- run: node --test tests/*.test.mjs manager/compose-planner/compose-command-planner.test.js
# The ls guard is not decoration: node --test treats a pattern that matches no file as zero
# tests and exits 0 (measured on Node 24.22), so without it this step would go green if the
# script tests ever disappeared.
- run: ls .github/scripts/*.test.mjs > /dev/null && node --test tests/*.test.mjs .github/scripts/*.test.mjs manager/compose-planner/compose-command-planner.test.js

management:
name: Management API · Python ${{ matrix.python }}
Expand Down
4 changes: 2 additions & 2 deletions tests/ci_test_list.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import test from 'node:test';

const workflow = readFileSync(new URL('../.github/workflows/tests.yml', import.meta.url), 'utf8');

test('CI runs all web tests and the compose planner in one test invocation', () => {
test('CI runs all web tests, the script tests and the compose planner in one test invocation', () => {
assert.match(
workflow,
/^ {6}- run: node --test tests\/\*\.test\.mjs manager\/compose-planner\/compose-command-planner\.test\.js$/m,
/^ {6}- run: ls \.github\/scripts\/\*\.test\.mjs > \/dev\/null && node --test tests\/\*\.test\.mjs \.github\/scripts\/\*\.test\.mjs manager\/compose-planner\/compose-command-planner\.test\.js$/m,
);
});

Expand Down
Loading