Extended Tests #218
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Extended Tests | |
| # Run after CI completes on main (not on PRs — saves runner minutes) | |
| on: | |
| workflow_run: | |
| workflows: ["CI"] | |
| types: [completed] | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| # Cancel in-progress runs to save runner minutes | |
| concurrency: | |
| group: extended-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| fuzz: | |
| name: Fuzz Testing | |
| runs-on: macos-15 | |
| # Only run if CI succeeded (not on failure or cancellation) | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache SPM dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: spm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Package.swift', 'Package.resolved') }} | |
| restore-keys: | | |
| spm-${{ runner.os }}-${{ runner.arch }}- | |
| - name: Run fuzz tests (10,000 inputs) | |
| run: swift run MarkViewFuzzTester | |
| timeout-minutes: 10 | |
| diff: | |
| name: Differential Testing | |
| runs-on: macos-15 | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache SPM dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: spm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Package.swift', 'Package.resolved') }} | |
| restore-keys: | | |
| spm-${{ runner.os }}-${{ runner.arch }}- | |
| - name: Run differential tests vs cmark-gfm | |
| run: swift run MarkViewDiffTester |