Skip to content

Commit

Permalink
Cache react-native-testing-mocks register
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Mar 27, 2024
1 parent 09bb775 commit 55ea954
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 19, 20, 21]
# node: [18, 19, 20, 21]
node: [21]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --immutable
- uses: actions/cache@v4
with:
path: ./package/node_modules/.cache
key: ${{ runner.os }}-react-native-testing-mocks-${{ hashFiles('./yarn.lock') }}
restore-keys: ${{ runner.os }}-react-native-testing-mocks-
- run: yarn compile
- run: yarn lint
- uses: mxschmitt/action-tmate@v3
- run: yarn test

0 comments on commit 55ea954

Please sign in to comment.