From 6034d6f1cb3cff4fc212acca13660c6a5d505a6f Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Sat, 13 Apr 2024 01:46:50 +0200 Subject: [PATCH] ci: update ci --- .github/workflows/test.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e82cdd..e400591 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,51 +10,49 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install - run: npm install + run: pnpm install - name: Run lint - run: npm run lint + run: pnpm lint typecheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install - run: npm install + run: pnpm install - name: Run typecheck - run: npm run typecheck + run: pnpm run typecheck tests: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] - node-version: - - 20.10.0 - - 21.x + node-version: ["lts/iron", "latest"] + steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install - run: npm install + run: pnpm install - name: Run tests - run: npm test + run: pnpm test windows: runs-on: windows-latest strategy: matrix: - node-version: - - 20.10.0 - - 21.x + node-version: ["lts/iron", "latest"] + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install - run: npm install + run: pnpm install - name: Run tests - run: npm test + run: pnpm test