Bypass tests for harden #4
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: markdown-to-markdown-sanitizer CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "markdown-to-markdown-sanitizer/**" | |
| - ".github/workflows/markdown-to-markdown-sanitizer.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "markdown-to-markdown-sanitizer/**" | |
| - ".github/workflows/markdown-to-markdown-sanitizer.yml" | |
| defaults: | |
| run: | |
| working-directory: ./markdown-to-markdown-sanitizer | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| cache-dependency-path: "./markdown-to-markdown-sanitizer/pnpm-lock.yaml" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Type check | |
| run: pnpm run check-types:all | |
| - name: Lint | |
| run: | | |
| pnpm run lint | |
| pnpm run lint:tests | |
| - name: Build | |
| run: pnpm run build | |
| - name: Test | |
| run: pnpm test |