Skip to content

Merge pull request #256 from hayat01sh1da/hayat01sh1da/javascript/bum… #25

Merge pull request #256 from hayat01sh1da/hayat01sh1da/javascript/bum…

Merge pull request #256 from hayat01sh1da/hayat01sh1da/javascript/bum… #25

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: JavaScript
on:
push:
branches:
- master
paths:
- '.github/workflows/javascript.yml'
- '.node-version'
- 'javascript/package.json'
- 'javascript/pnpm-lock.yaml'
- 'javascript/pnpm-workspace.yaml'
- 'javascript/**/*.js'
pull_request:
paths:
- '.github/workflows/javascript.yml'
- '.node-version'
- 'javascript/package.json'
- 'javascript/pnpm-lock.yaml'
- 'javascript/pnpm-workspace.yaml'
- 'javascript/**/*.js'
permissions:
contents: read
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
# https://github.com/actions/setup-node/
- uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v5
with:
version: 10
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
cache-dependency-path: javascript/pnpm-lock.yaml
- name: Install Packages
working-directory: ./javascript
run: pnpm install --frozen-lockfile
- name: Run Jest
working-directory: ./javascript
env:
TZ: 'Asia/Tokyo'
run: pnpm exec jest