Update package.json (#551) #259
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
name: JS CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
paths: | |
- "javascript/**" | |
workflow_dispatch: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
name: Unit tests | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
cd python && poetry lock | |
- name: Setup Python Cache | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: "poetry" | |
- name: Install Rollup globally | |
run: npm install --global rollup | |
- name: Clear npm cache | |
run: npm cache clean --force | |
- name: Install dependencies | |
working-directory: ./javascript | |
run: | | |
yarn install --frozen-lockfile | |
cd ../ && make install | |
- name: Run mock | |
run: | |
make mock | |
- name: Run test | |
working-directory: ./javascript | |
run: | |
yarn test | |
- name: Build package with Rollup | |
working-directory: ./javascript | |
run: npx rollup -c rollup.config.mjs | |