|
| 1 | +name: Coverage Reporting |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | + |
| 15 | +jobs: |
| 16 | + coverage: |
| 17 | + name: Check coverage and report to Coveralls |
| 18 | + runs-on: ubuntu-24.04 |
| 19 | + steps: |
| 20 | + |
| 21 | + - uses: actions/checkout@v5 |
| 22 | + |
| 23 | + - name: Setup Node.js |
| 24 | + uses: actions/setup-node@v6 |
| 25 | + with: |
| 26 | + node-version: 22.20.0 |
| 27 | + |
| 28 | + - name: Install dependencies |
| 29 | + run: npm ci |
| 30 | + |
| 31 | + - name: Check coverage |
| 32 | + run: npm run coverage |
| 33 | + |
| 34 | + - name: Send report to Coveralls for package @ui5/builder |
| 35 | + uses: coverallsapp/[email protected] |
| 36 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 37 | + with: |
| 38 | + file: packages/builder/coverage/lcov.info |
| 39 | + base-path: packages/builder |
| 40 | + |
| 41 | + - name: Send report to Coveralls for package @ui5/cli |
| 42 | + uses: coverallsapp/[email protected] |
| 43 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 44 | + with: |
| 45 | + file: packages/cli/coverage/lcov.info |
| 46 | + base-path: packages/cli |
| 47 | + |
| 48 | + - name: Send report to Coveralls for package @ui5/fs |
| 49 | + uses: coverallsapp/[email protected] |
| 50 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 51 | + with: |
| 52 | + file: packages/fs/coverage/lcov.info |
| 53 | + base-path: packages/fs |
| 54 | + |
| 55 | + - name: Send report to Coveralls for package @ui5/logger |
| 56 | + uses: coverallsapp/[email protected] |
| 57 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 58 | + with: |
| 59 | + file: packages/logger/coverage/lcov.info |
| 60 | + base-path: packages/logger |
| 61 | + |
| 62 | + - name: Send report to Coveralls for package @ui5/project |
| 63 | + uses: coverallsapp/[email protected] |
| 64 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 65 | + with: |
| 66 | + file: packages/project/coverage/lcov.info |
| 67 | + base-path: packages/project |
| 68 | + |
| 69 | + - name: Send report to Coveralls for package @ui5/server |
| 70 | + uses: coverallsapp/[email protected] |
| 71 | + continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) |
| 72 | + with: |
| 73 | + file: packages/server/coverage/lcov.info |
| 74 | + base-path: packages/server |
0 commit comments