🚑 Check files that are missing in storage #357
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: backend-build | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- "tdrive/backend/node/**" | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prettier code style check | |
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier | |
- name: Lint | |
run: cd tdrive && 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: e2e-mongo-test | |
run: | | |
cd tdrive | |
docker-compose -f docker-compose.tests.yml run --rm -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:all | |
docker-compose -f docker-compose.tests.yml down | |
- name: e2e-opensearch-test | |
run: | | |
cd tdrive | |
docker-compose -f docker-compose.dev.tests.opensearch.yml up -d --force-recreate opensearch-node1 postgres node | |
sleep 60 | |
docker-compose -f docker-compose.dev.tests.opensearch.yml logs | |
docker-compose -f docker-compose.dev.tests.opensearch.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=opensearch -e DB_DRIVER=postgres -e PUBSUB_TYPE=local node npm run test:all | |
docker-compose -f docker-compose.dev.tests.opensearch.yml down | |
- name: e2e-cassandra-test | |
run: cd tdrive && 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:all | |
- name: coverage | |
uses: adRise/jest-cov-reporter@main | |
with: | |
branch-coverage-report-path: ./tdrive/coverage/coverage-summary.json | |
base-coverage-report-path: ./tdrive/coverage/coverage-summary.json | |
delta: 0.3 | |
fullCoverageDiff: true | |