fix: handle node10 resolution + add attw test #1441
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: corepack enable | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π Lint project | |
run: pnpm lint | |
- name: πͺ Check published types | |
run: pnpm test:attw | |
- name: π¦ Check `package.json` | |
run: pnpm test:publint | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: corepack enable | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- run: pnpm dev:prepare | |
- name: π§ͺ Test project | |
run: pnpm test | |
- name: π Build project | |
run: pnpm build | |
- name: π Build project (example) | |
run: pnpm example:build | |
- name: πͺ Type check | |
run: pnpm test:types |