[Snyk] Security upgrade socket.io from 4.4.1 to 4.6.2 #3138
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: backend-build | |
on: | |
pull_request: | |
branches: [main, develop, qa, canary] | |
paths: | |
- "twake/backend/core/**" | |
- "twake/backend/node/**" | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prettier code style check | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier | |
- name: Lint | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run build | |
- name: unit-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit | |
- name: e2e-mongo-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e | |
- name: e2e-cassandra-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml up -d scylladb elasticsearch rabbitmq && sleep 60 && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=elasticsearch -e DB_DRIVER=cassandra node npm run test:e2e | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cd twake && mv docker-compose.tests.yml docker-compose.yml | |
- run: cd twake && docker-compose up -d | |
- run: cd twake && docker-compose exec -T php php composer.phar install | |
- run: cd twake && docker-compose exec -T php php bin/console twake:schema:update #Test if scylla is live | |
- run: cd twake && docker-compose exec -T php php bin/console twake:mapping #Test if es is live | |
- run: cd twake && docker-compose exec -T php php bin/console twake:init #Test in we can do things |