Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Merge pull request #8 from shikajiro/test #58

Merge pull request #8 from shikajiro/test

Merge pull request #8 from shikajiro/test #58

Workflow file for this run

name: Test & Lint
on:
push:
branches:
- "**"
- "!release"
paths:
- "src/**"
- "__tests__/**"
- "*.js"
- "*.json"
- ".github/workflows/test.yml"
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- run: npm install
- run: npm run test -- --coverage
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- run: npm install
- run: npm run lint