Skip to content

feat: add support for new node.js version #11

feat: add support for new node.js version

feat: add support for new node.js version #11

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
env:
PNPM_VERSION: 9.1.4
jobs:
lint:
name: ⬣ Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
test:
name: 🧪 Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.19.1", "20.8.1", "22.0.0"]
needs: [lint]
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
build:
name: 🏗️ Build
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run build
run: pnpm build