diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index d21635b..aefd8e7 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -23,10 +23,10 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install --include=dev + run: npm ci - name: Type check - run: npx tsc --noEmit + run: npm run typecheck - name: Test run: npm test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fad540b..8ac5a85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,21 +7,31 @@ on: jobs: ci: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Cover the engines.node range declared in package.json (>=18): + # the supported minimum, current LTS, and latest LTS. + node-version: ['18', '20', '22'] + name: ci (Node ${{ matrix.node-version }}) steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies - run: npm install --include=dev + run: npm ci - name: Lint run: npm run lint + - name: Type check + run: npm run typecheck + - name: Test run: npm test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 575daf9..b4c0285 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install --include=dev + run: npm ci - name: Set version from tag run: |