Skip to content

Commit 41f5c9e

Browse files
RI-000 poc for BE unit tests
1 parent 0e39935 commit 41f5c9e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

.github/workflows/tests-backend.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,6 @@ jobs:
3030
run: |
3131
yarn install --frozen-lockfile --network-timeout 1000000
3232
33-
- name: API PROD dependencies scan
34-
run: |
35-
FILENAME=api.prod.deps.audit.json
36-
37-
yarn --cwd redisinsight/api audit --groups dependencies --json > $FILENAME || true &&
38-
FILENAME=$FILENAME DEPS="API prod" node .github/deps-audit-report.js &&
39-
curl -H "Content-type: application/json" --data @slack.$FILENAME -H "Authorization: Bearer $SLACK_AUDIT_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
40-
41-
- name: API DEV dependencies scan
42-
run: |
43-
FILENAME=api.dev.deps.audit.json
44-
45-
yarn --cwd redisinsight/api audit --groups devDependencies --json > $FILENAME || true &&
46-
FILENAME=$FILENAME DEPS="API dev" node .github/deps-audit-report.js &&
47-
curl -H "Content-type: application/json" --data @slack.$FILENAME -H "Authorization: Bearer $SLACK_AUDIT_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
48-
49-
- name: Code analysis
50-
run: |
51-
FILENAME=api.lint.audit.json
52-
WORKDIR="./redisinsight/api"
53-
54-
yarn lint:api -f json -o $FILENAME || true &&
55-
FILENAME=$FILENAME WORKDIR=$WORKDIR TARGET="API" node .github/lint-report.js &&
56-
curl -H "Content-type: application/json" --data @$WORKDIR/slack.$FILENAME -H "Authorization: Bearer $SLACK_AUDIT_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
57-
5833
- name: Unit tests API
5934
timeout-minutes: 20
6035
run: yarn --cwd redisinsight/api/ test:cov --ci --silent

0 commit comments

Comments
 (0)