Skip to content

GitHub Actions: トリガー変更, Node.jsバージョン指定方法変更 #1

GitHub Actions: トリガー変更, Node.jsバージョン指定方法変更

GitHub Actions: トリガー変更, Node.jsバージョン指定方法変更 #1

Workflow file for this run

name: Testing
on:
push:
tags-ignore:
- '*'
branches: [main]
paths-ignore:
- '**.md'
pull_request:
types: [opened, synchronize, reopened]
jobs:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
name: Testing on Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- name: testing
run: npm run test