Skip to content

upgrade deps

upgrade deps #4

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
strategy:
matrix:
node-version: [20, 22]
os: [ubuntu-latest, windows-latest]
fail-fast: false
name: node ${{ matrix.node-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install
run: pnpm install
- name: Check
run: pnpm run check
- name: Test
run: pnpm run test:cover
# Uncomment this step if you want to upload coverage reports to Codecov
# - name: Upload coverage reports to Codecov
# if: ${{ matrix.node-version == '22' && matrix.os == 'ubuntu-latest' }}
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: mys1024/starter-node
- name: Build
run: pnpm run build