perf: call cacheKeyFn only when it is needed (if caching) (#342) #90
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: Flow check, Lint and Tests | |
on: push | |
jobs: | |
validation: | |
name: Testing on Node ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14, 16, 18, 19] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Use Node ${{ matrix.node-version }} | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Get yarn cache | |
uses: c-hive/gha-yarn-cache@v2 | |
- name: Install Dependencies using Yarn | |
run: yarn --ignore-engines | |
- name: Tests | |
run: yarn test:ci | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true |