Skip to content

Commit ee45561

Browse files
handrewscodex
andcommitted
Remove duplicated build infrastructure tests
Keep renderer implementation tests in build-infra and make the schema workflow run only the repository-owned schema suite when it is present. Co-authored-by: Codex <codex@openai.com>
1 parent 447c479 commit ee45561

12 files changed

Lines changed: 4 additions & 426 deletions

‎.github/workflows/schema-tests.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- name: Install dependencies
3434
run: yarn install --immutable
3535

36-
- name: Run tests
37-
run: yarn test
36+
- name: Run schema tests
37+
if: ${{ hashFiles('tests/schema/schema.test.mjs') != '' }}
38+
run: yarn test tests/schema/schema.test.mjs
3839
env:
3940
BASE: ${{ github.event.pull_request.base.ref }}

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Before creating a pull request or marking a draft pull request as ready for revi
209209
| `yarn validate-markdown` | markdownlint + link check only — fast loop while editing |
210210
| `yarn format-markdown` | auto-fix markdownlint violations |
211211
| `yarn build-src` | full check: validation, HTML build, schema publish |
212-
| `yarn test` | runs the JSON Schema and build tooling test suites |
212+
| `yarn test` | runs the JSON Schema test suite on development branches |
213213

214214
5. After `yarn build-src`, open output file `deploy-preview/oas.html` with a browser and check your changes
215215

‎tests/md2html/README.md‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎tests/md2html/fixtures/.gitattributes‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎tests/md2html/fixtures/basic-new.html‎

Lines changed: 0 additions & 119 deletions
This file was deleted.

‎tests/md2html/fixtures/basic-new.maintainers‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎tests/md2html/fixtures/basic-new.md‎

Lines changed: 0 additions & 135 deletions
This file was deleted.

‎tests/md2html/fixtures/basic-old.html‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎tests/md2html/fixtures/basic-old.maintainers‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎tests/md2html/fixtures/basic-old.md‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)