Reduce frequency of pre-commit autoupdates (#3246) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure that the javascript package can be built with webpack | |
# Runs on any PRs that modify the javascript directory | |
name: test_js | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "javascript/**" | |
jobs: | |
build-js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/Hydrogen | |
- run: npm ci | |
working-directory: ./javascript | |
- run: npm run build | |
working-directory: ./javascript | |
- run: npm run test | |
working-directory: ./javascript |