Skip to content

Merge pull request #762 from Speech-Rule-Engine/dependabot/npm_and_ya… #597

Merge pull request #762 from Speech-Rule-Engine/dependabot/npm_and_ya…

Merge pull request #762 from Speech-Rule-Engine/dependabot/npm_and_ya… #597

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source
# code and run tests in block on the latest version of node.
name: Tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
setup:
runs-on: ubuntu-latest
name: Compile SRE with locales
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Setup Speech Rule Engine
run: pnpm i; pnpm build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: sre-library
path: |
lib
js
package.json
test:
strategy:
matrix:
block: [base, walker, semantic, en, en-ssml, ca, de, da, fr, es, it, hi, ko, nb, nn, sv]
needs: setup
runs-on: ubuntu-latest
name: SRE jests tests for ${{ matrix.block }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Downloading the build
uses: actions/[email protected]
with:
name: sre-library
- name: Set up tests
run: |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
git submodule update --init --recursive
pnpm i --ignore-scripts
cd sre-tests; ln -s .. speech-rule-engine; pnpm i; sudo chmod -R 777 .;
- name: Run tests for ${{ matrix.block }}
run: pnpm run actionTest js/actions/${{ matrix.block }}.test.js