From 3704ff30d93ad30076cecbdbe77ca29412d63ae8 Mon Sep 17 00:00:00 2001 From: Olivier Louvignes Date: Mon, 15 Apr 2024 10:54:25 +0200 Subject: [PATCH] feat(update): minor changes --- .github/workflows/main.yml | 42 +++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 431f4aa..d2dcfe5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,41 +12,51 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['12', '14', '16'] + node: ["lts/-1", "lts/*"] name: Test on node@v${{ matrix.node }} steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 - - name: Setup 🔧 - uses: actions/setup-node@v2 + uses: actions/checkout@v3 + - name: Setup pnpm 🔧 + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup node 🔧 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} check-latest: true - cache: 'npm' + cache: "pnpm" - name: Install 🪄 - run: npm ci + run: pnpm install --frozen-lockfile - name: Lint 🔍 - run: npm run lint + run: pnpm run lint - name: Prettier 🔍 - run: npm run prettycheck + run: pnpm run prettycheck - name: TypeScript 🔍 - run: npm run typecheck + run: pnpm run typecheck + - name: Vitest 🔍 + run: pnpm run spec build: runs-on: ubuntu-latest strategy: matrix: - node: ['12', '14', '16'] + node: ["lts/-1", "lts/*"] name: Build on node@v${{ matrix.node }} steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 - - name: Setup 🔧 - uses: actions/setup-node@v2 + uses: actions/checkout@v3 + - name: Setup pnpm 🔧 + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup node 🔧 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} check-latest: true - cache: 'npm' + cache: "pnpm" - name: Install 🪄 - run: npm ci + run: pnpm install --frozen-lockfile - name: Build 💎 - run: npm run build + run: pnpm run build