Added SessionStarted in ServerAction type #8591
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: Unit Tests CI | |
on: | |
push: | |
branches: | |
- master | |
- master-qa | |
pull_request: | |
branches: | |
- master-qa | |
jobs: | |
unit-tests-submodules: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ut-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
strategy: | |
matrix: | |
node-version: [16.x] | |
mongodb-version: [4.4] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ssh-key: ${{ secrets.ACTION_ACCESS_SUB_MODULES_PRIVATE_REPOS }} | |
submodules: true | |
- name: Start MongoDB ${{ matrix.mongodb-version }} | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
mongodb-replica-set: rs0 | |
- name: Initialize DB | |
run: | | |
bash docker/initdb/createMongoUsers.sh | |
- name: Install NodeJs ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install NodeJs Packages | |
run: npm ci | |
- name: Build sources | |
run: | | |
cp src/assets/configs-ci/config.json src/assets | |
npm run build:dev | |
- name: Start Server | |
run: | | |
npm run start:dev & sleep 10 | |
- name: Create Test data | |
run: | | |
if [ ! -d test/config ]; then mkdir -p test/config; fi | |
cp src/assets/configs-ci/local.json test/config | |
npm run test:createContext | |
- name: Run Tests | |
run: npm run test | |