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
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,27 @@ jobs:
git -C "${PY_FIXTURE_CHECKOUT}" checkout --detach FETCH_HEAD
echo "Resolved fixture source: ${PY_FIXTURE_CHECKOUT}/tests/fixtures/conformance"

- name: Check fixture drift
- name: Check conformance fixture drift
env:
FIXTURES_SOURCE: /tmp/context-compiler-source/tests/fixtures/conformance
run: |
echo "Using FIXTURES_SOURCE=${FIXTURES_SOURCE}"
npm run fixtures:check

- name: Check preprocessor fixture drift
env:
PREPROCESSOR_FIXTURES_SOURCE: /tmp/context-compiler-source/tests/fixtures/preprocessor
run: |
echo "Using PREPROCESSOR_FIXTURES_SOURCE=${PREPROCESSOR_FIXTURES_SOURCE}"
npm run fixtures:preprocessor:check

- name: Check structured fixture drift
env:
STRUCTURED_FIXTURES_SOURCE: /tmp/context-compiler-source/tests/fixtures/engine-regression/structured
run: |
echo "Using STRUCTURED_FIXTURES_SOURCE=${STRUCTURED_FIXTURES_SOURCE}"
npm run fixtures:structured:check

- name: Build
run: npm run build

Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ Commands:

- `FIXTURES_SOURCE=/path/to/context-compiler/tests/fixtures/conformance npm run fixtures:sync` to copy fixtures from Python into `tests/fixtures/conformance`
- `FIXTURES_SOURCE=/path/to/context-compiler/tests/fixtures/conformance npm run fixtures:check` to detect drift between local fixtures and Python fixtures
- `PREPROCESSOR_FIXTURES_SOURCE=/path/to/context-compiler/tests/fixtures/preprocessor npm run fixtures:preprocessor:check` to detect preprocessor fixture drift
- `STRUCTURED_FIXTURES_SOURCE=/path/to/context-compiler/tests/fixtures/engine-regression/structured npm run fixtures:structured:check` to detect structured regression fixture drift

`FIXTURES_SOURCE` is required for both commands.
Each check command requires its matching `*_SOURCE` variable.

## Pull Requests

Expand Down
Loading