refactor: convert SpanGraph to functional component (#3705) #12629
This file contains hidden or 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: 'Unit Tests' | |
| on: | |
| merge_group: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| cache: npm | |
| node-version-file: 'package.json' | |
| - name: Upgrade npm | |
| run: | | |
| NPM_VERSION=$(node -p "require('./package.json').engines.npm.replace(/[^0-9.]/g, '')") | |
| npm install -g npm@$NPM_VERSION | |
| - run: npm --version | |
| - run: npm ci | |
| - run: npm ls --all | |
| - run: npm run coverage | |
| - name: Upload coverage to codecov.io | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| fail_ci_if_error: true | |
| verbose: true | |
| # Using upload token helps against rate limiting errors. | |
| # Cannot define it as secret as we need it accessible from forks. | |
| # See https://github.com/codecov/codecov-action/issues/837 | |
| token: 31c3122b-7b49-4267-a117-8c9354a97119 |