fix plugins TS setup and tests, update workflow #1650
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: Pre-merge | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint-workspace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: yarn | |
| - name: Check lock for duplications | |
| run: yarn dedupe --check | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Check dependencies alignment | |
| run: yarn check-dependencies | |
| - name: Run packages lint | |
| run: yarn lint:packages | |
| - name: Run plugins lint | |
| run: yarn lint:plugins | |
| - name: Run remark-codeblock-language-as-title plugin checks | |
| working-directory: plugins/remark-codeblock-language-as-title | |
| run: yarn tsc | |
| - name: Run remark-lint-no-dead-urls plugin checks | |
| working-directory: plugins/remark-lint-no-dead-urls | |
| run: yarn tsc && yarn test | |
| - name: Run remark-snackplayer plugin checks | |
| working-directory: plugins/remark-snackplayer | |
| run: yarn tsc && yarn test | |
| lint-website: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Run Website Specific Lints | |
| working-directory: website | |
| run: yarn ci:lint | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Build | |
| run: yarn build | |
| working-directory: website | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=8192 |