fix(website): serve DOMPurify with JavaScript MIME type #431
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: Automated Tests | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v7 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate fixtures | |
| run: node --run fixtures -- validate | |
| - name: Verify golden artifacts | |
| run: node --run fixtures -- golden-check | |
| - name: Check spelling | |
| run: node --run test:spelling | |
| - name: Check linting | |
| run: node --run lint | |
| - name: Run Unit Tests | |
| run: node --run test:unit | |
| - name: Check TypeScript types | |
| run: node --run test:types | |
| - run: echo "🍏 This job's status is ${{ job.status }}." |