Skip to content

test(api-notify-newcomer): ライブラリ依存を改善 #53

test(api-notify-newcomer): ライブラリ依存を改善

test(api-notify-newcomer): ライブラリ依存を改善 #53

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- develop
paths-ignore:
- "**/*.md"
- ".git*"
- ".vscode/**"
jobs:
test:
name: npm run test
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Cache packages
uses: actions/cache@v4
id: cache_npm_packages
env:
cache-name: cache-npm-packages
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install packages
if: ${{ steps.cache_npm_packages.outputs.cache-hit != 'true' }}
run: npm i
- name: Run test
run: npm run test