mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Setup test, break apart entrypoint, & align GHA workflow
This commit is contained in:
30
.github/workflows/be-test-report.yml
vendored
Normal file
30
.github/workflows/be-test-report.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: 'Backend Test Report'
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['Check Backend Pull Request']
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
be-report:
|
||||
name: Backend test report
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: dorny/test-reporter@v1
|
||||
with:
|
||||
path: '*.xml' # Path to test results (inside artifact .zip)
|
||||
reporter: jest-junit # Format of 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
|
||||
id: coverage
|
||||
with:
|
||||
output: report-markdown
|
||||
coverage-file: backend/coverage/report.json
|
||||
Reference in New Issue
Block a user