feat(react): add keepAlive prop to list-view-item and docs update #1458
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: '[front-end] build tests' | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - v3.0-dev | |
| - v3.0 | |
| paths: | |
| - 'driver/js/packages/**' | |
| - 'package*.json' | |
| - 'driver/js/examples/hippy-*-demo/**' | |
| - 'driver/js/lib/**' | |
| - 'driver/js/scripts/**' | |
| defaults: | |
| run: | |
| working-directory: driver/js | |
| jobs: | |
| frontend_build_tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [ 16.x, 17.x ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: setup-node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| registry-url: https://npm.pkg.github.com | |
| cache: 'npm' | |
| cache-dependency-path: driver/js/package-lock.json | |
| - name: install | |
| run: | | |
| npm install && npx lerna bootstrap --no-ci | |
| - name: lint & build | |
| run: npm run lint & npm run build | |
| - name: test | |
| run: npm run coverage | |
| - name: coverage | |
| if: matrix.node == '16.x' | |
| uses: codecov/codecov-action@v2 |