Skip to content

Merge pull request #141 from hatsu38/dependabot/npm_and_yarn/jest-and… #217

Merge pull request #141 from hatsu38/dependabot/npm_and_yarn/jest-and…

Merge pull request #141 from hatsu38/dependabot/npm_and_yarn/jest-and… #217

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x, 16.x, 17.x, 18.x, 19.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('./package-lock.json') }}
restore-keys: |
${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('./package-lock.json') }}
- name: Install
run: npm ci --prefer-offline --no-audit --no-optional
env:
CI: true
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test
- name: Lint
run: npm run lint .