From 55ea95464bc0a47786685817487f96710ff32794 Mon Sep 17 00:00:00 2001 From: Jose Luis Leon Date: Tue, 19 Mar 2024 10:35:49 -0500 Subject: [PATCH] Cache react-native-testing-mocks register --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 119acbb..986d5a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,8 @@ 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 @@ -23,6 +24,12 @@ jobs: 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