Skip to content

Commit 1a564ba

Browse files
committed
check gh actions
1 parent 9f8dd25 commit 1a564ba

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

.github/workflows/tests-e2e-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: '20.15'
31+
node-version: '20.18.0'
3232

3333
- name: Download linux artifact
3434
uses: actions/download-artifact@v4

.github/workflows/tests-frontend.yml

+25-13
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ on:
33
workflow_call:
44

55
env:
6+
SLACK_AUDIT_REPORT_CHANNEL: ${{ secrets.SLACK_AUDIT_REPORT_CHANNEL }}
67
SLACK_AUDIT_REPORT_KEY: ${{ secrets.SLACK_AUDIT_REPORT_KEY }}
8+
REPORT_NAME: "report-vscode-fe"
79

810
jobs:
911
unit-tests:
@@ -18,21 +20,31 @@ jobs:
1820
- name: Unit tests UI
1921
run: yarn test:cov
2022

21-
- name: Publish Test Results
22-
uses: EnricoMi/publish-unit-test-result-action@v2
23+
- name: Upload Test Report
24+
uses: actions/upload-artifact@v4
2325
if: always()
2426
with:
25-
check_name: 'FE Unit tests summary'
26-
comment_mode: 'failures'
27-
files: reports/junit.xml
27+
name: ${{ env.REPORT_NAME }}
28+
path: report
2829

29-
- name: Generate test results
30-
uses: dorny/test-reporter@v1
30+
- name: Deploy report
31+
uses: RedisInsight/RedisInsight/.github/actions/deploy-test-reports
3132
if: always()
3233
with:
33-
name: 'Test results: FE unit tests'
34-
path: reports/junit.xml
35-
reporter: jest-junit
36-
list-tests: 'failed'
37-
list-suites: 'failed'
38-
fail-on-error: 'false'
34+
group: 'report'
35+
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
36+
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
37+
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
38+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
39+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40+
41+
- name: Get current date
42+
id: date
43+
if: always()
44+
uses: RedisInsight/RedisInsight/.github/actions/[email protected]
45+
46+
- name: Add link to report in the workflow summary
47+
if: always()
48+
run: |
49+
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
50+
echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"lint:fix": "eslint . --fix --ext .js,.jsx,.ts,.tsx",
151151
"test:watch": "vitest watch --dir ./src/webviews/src",
152152
"test:watch:ui": "vitest watch --ui --coverage --dir ./src/webviews/src",
153-
"test:cov": "vitest run --silent --coverage --dir ./src/webviews/src",
153+
"test:cov": "vitest run --silent --coverage --dir ./src/webviews/src/store/hooks/use-selected-key-store",
154154
"package:prod": "npx mkdirp release && npx @vscode/vsce package",
155155
"package:stage": "npx mkdirp release && npx @vscode/vsce package --pre-release",
156156
"prepare": "husky install"

0 commit comments

Comments
 (0)