Add ecosystem CI: regression-test the plugin against real-world Ember repos #234
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ['22', '24'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| - run: pnpm run typecheck:tests | |
| - run: pnpm test | |
| - name: Smoke-test CLI on shipped fixtures | |
| run: | | |
| # Each fixture is exercised by the integration suite; this just | |
| # verifies the CLI runs without crashing. Many fixtures are | |
| # designed to fail validation, so a non-zero exit is expected — | |
| # we only fail CI on a hard crash (BUG: line in stderr). | |
| for fixture in examples/*.gts examples/*.gjs examples/*.hbs; do | |
| [ -f "$fixture" ] || continue | |
| node dist/run.js "$fixture" 2>&1 | tee /tmp/out.log | |
| if grep -q '\[html-validate-ember\] BUG:' /tmp/out.log; then | |
| echo "Hard failure on $fixture" | |
| exit 1 | |
| fi | |
| done |