Skip to content

yarnからnpmへの切り替え #2

yarnからnpmへの切り替え

yarnからnpmへの切り替え #2

Workflow file for this run

name: test
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['18.x', '20.x', '22.x', '24.x']
steps:
- uses: actions/checkout@v5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- run: npm install
- run: npm run lint
- run: npm test