Merge branch 'patch-perf' of github.com:AikidoSec/node-RASP into patc… #382
Workflow file for this run
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: End to end tests | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
mongodb: | |
image: mongo:5 | |
env: | |
"MONGO_INITDB_ROOT_USERNAME": "root" | |
"MONGO_INITDB_ROOT_PASSWORD": "password" | |
ports: | |
- 27017:27017 | |
postgres: | |
image: postgres:14-alpine | |
env: | |
"POSTGRES_PASSWORD": "password" | |
"POSTGRES_USER": "root" | |
"POSTGRES_DB": "main_db" | |
ports: | |
- "27016:5432" | |
mysql: | |
image: mysql:8 | |
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password | |
# We need to use this long command in order to execute the last part : mysql_native_password | |
# https://stackoverflow.com/questions/60902904/how-to-pass-mysql-native-password-to-mysql-service-in-github-actions | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=mypassword -e MYSQL_DATABASE=catsdb --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" | |
ports: | |
- "27015:3306" | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: make install | |
- run: make build | |
- run: make end2end |