Skip to content

update & simply steps #36

update & simply steps

update & simply steps #36

Workflow file for this run

# cf.
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs#starting-with-the-nodejs-workflow-template
# https://dev.classmethod.jp/articles/caching-dependencies-in-workflow-execution-on-github-actions/
# https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
name: CI via GitHub Actions
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 18]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test