update: move extraFileExtension in example in README #19
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm v9 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install Node.js v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Run Lint Test (Flat Config) | |
run: pnpm lint:strict | |
format: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm v9 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install Node.js v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Check Formatting | |
run: pnpm format:check | |
lint-legacy: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm v9 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install Node.js v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Run Lint Test (Legacy Config) | |
run: pnpm lint:legacy:strict | |
lint-esm: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm v9 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install Node.js v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Run Lint Test (Flat ESM Config) | |
run: pnpm lint:mjs:strict |