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
2 changes: 2 additions & 0 deletions .github/workflows/test_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
uses: actions/setup-node@v7
with:
node-version: 22
# The newest release, not the runner's cached one: Astro raises its minimum often.
check-latest: true
cache: npm
cache-dependency-path: docs/package-lock.json

Expand Down
14 changes: 14 additions & 0 deletions src/app/tests/unit/test_workflows.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""The CI workflows: Node comes from the newest release, not the runner's tool cache."""

from pathlib import Path

import pytest

ROOT = Path(__file__).resolve().parents[4]
WORKFLOWS = sorted((ROOT / ".github" / "workflows").glob("*.yml"))


@pytest.mark.parametrize("workflow", WORKFLOWS, ids=lambda path: path.name)
def test_setup_node_checks_latest(workflow):
text = workflow.read_text()
assert text.count("actions/setup-node") == text.count("check-latest: true")
Loading