From 5cca041e0a2ba18600bcd947416f3f2be8738f35 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 14 Oct 2024 23:12:21 +0200 Subject: [PATCH] Improve Caching (#138) --- .github/workflows/e2e.yaml | 4 +++- .github/workflows/pull-request.yaml | 6 +++--- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8550ece..505a79e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -26,7 +26,9 @@ jobs: ${{ runner.os }}-yarn- - name: E2E Test - run: yarn && yarn test e2e + run: | + yarn --frozen-lockfile + yarn test e2e env: MPC_CONTRACT_ID: v1.signer-prod.testnet NEAR_ACCOUNT_ID: ${{secrets.NEAR_ACCOUNT_ID}} diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 57bf318..214ea9a 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -28,8 +28,8 @@ jobs: ${{ runner.os }}-yarn- - name: Install & Build - run: yarn && yarn build - - - name: Lint & Unit Test & Coverage run: | + yarn --frozen-lockfile + yarn lint + yarn build yarn verify diff --git a/package.json b/package.json index 87ddaac..7582261 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "lint": "eslint . --ignore-pattern dist/ && prettier --check **/*.ts", "test": "jest --testTimeout 30000", "coverage": "yarn test --coverage", - "verify": "yarn lint && yarn coverage unit", + "verify": "yarn coverage unit", "fmt": "prettier --write '{src,examples,tests}/**/*.{js,jsx,ts,tsx}' && eslint src/ --fix" }, "engines": {