Feature/sc-46253/sdk-table-pagination #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: api-client coverage | |
on: | |
pull_request: | |
paths: | |
- 'packages/api-client/**' | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Get api client test coverage on node ${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['16.17.1'] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Use Node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: npm ci | |
working-directory: ./packages/api-client | |
- name: test | |
run: npm run test | |
working-directory: ./packages/api-client | |
- name: Coverage | |
run: npm run test:coverage | |
working-directory: ./packages/api-client | |
- name: Comment | |
uses: romeovs/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lcov-file: ./packages/api-client/coverage/lcov.info |