Merge pull request #51 from voicevox-client/dependabot/npm_and_yarn/t… #100
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: Test voicevox-client | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
name: Test voicevox-client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install depend | |
run: yarn install --frozen-lockfile --save-dev | |
- name: Run voicevox-engine | |
run: | | |
docker pull voicevox/voicevox_engine:cpu-ubuntu20.04-latest | |
docker run -d --rm -p '0.0.0.0:50021:50021' voicevox/voicevox_engine:cpu-ubuntu20.04-latest | |
sleep 20 | |
- name: Build library | |
run: | | |
yarn build | |
yarn install --frozen-lockfile --save-dev | |
- name: Run test | |
run: yarn test |