Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Correct workflow test

Reginald Bondoc113ec5568181
diff --git a/.github/workflows/be-test-report.yml b/.github/workflows/be-test-report.yml
index dc3e10307f..1ddcf61df4 100644
--- a/.github/workflows/be-test-report.yml
+++ b/.github/workflows/be-test-report.yml
@@ -1,8 +1,8 @@
-name: 'Backend Test Report'
+name: "Backend Test Report"
on:
workflow_run:
- workflows: ['Check Backend Pull Request']
+ workflows: ["Check Backend Pull Request"]
types:
- completed
@@ -12,19 +12,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: dorny/test-reporter@v1
+ - name: πŸ“ Download test results
+ uses: actions/download-artifact@v3
with:
- path: '*.xml' # Path to test results (inside artifact .zip)
- reporter: jest-junit # Format of test results
- - name: πŸ“„ Publish test results
+ name: be-test-results
+ - name: πŸ“‹ Publish test results
uses: dorny/test-reporter@v1
with:
name: Test Results
- artifact: be-test-results
path: reports/jest-*.xml
reporter: jest-junit
- - uses: ArtiomTr/jest-coverage-report-action@v2
+ - name: πŸ“‹ Publish coverage
+ uses: ArtiomTr/jest-coverage-report-action@v2
id: coverage
with:
output: report-markdown
- coverage-file: backend/coverage/report.json
+ coverage-file: coverage/report.json
diff --git a/.github/workflows/check-be-pull-request.yml b/.github/workflows/check-be-pull-request.yml
index 49440f4865..ebda38eff3 100644
--- a/.github/workflows/check-be-pull-request.yml
+++ b/.github/workflows/check-be-pull-request.yml
@@ -1,13 +1,14 @@
-name: 'Check Backend Pull Request'
+name: "Check Backend Pull Request"
on:
+ workflow_dispatch: # remove me
pull_request:
types: [opened, synchronize]
paths:
- - 'backend/**'
- - '!backend/README.md'
- - '!backend/.*'
- - 'backend/.eslintrc.js'
+ - "backend/**"
+ - "!backend/README.md"
+ - "!backend/.*"
+ - "backend/.eslintrc.js"
jobs:
check-be-pr:
@@ -20,8 +21,8 @@ jobs:
- name: πŸ”§ Setup Node 16
uses: actions/setup-node@v3
with:
- node-version: '16'
- cache: 'npm'
+ node-version: "16"
+ cache: "npm"
cache-dependency-path: backend/package-lock.json
- name: πŸ“¦ Install dependencies
run: npm ci --only-production --ignore-scripts
@@ -35,8 +36,8 @@ jobs:
with:
name: be-test-results
path: |
- backend/reports
- backend/coverage
+ ./backend/reports
+ ./backend/coverage
- name: πŸ—οΈ Run build
run: npm run build
working-directory: backend