From 26c921251b19ef48ba518a826780fafed763666b Mon Sep 17 00:00:00 2001 From: Strift Date: Mon, 20 Jan 2025 20:32:03 +0800 Subject: [PATCH] Use corepack install --- .github/workflows/tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f3c98b7b..a19956a6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,10 +18,12 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Setup Yarn - uses: threeal/setup-yarn-action@v2.0.0 + cache: "yarn" + cache-dependency-path: yarn.lock + - name: Enable Corepack + run: corepack enable - name: Install dev dependencies - run: yarn + run: yarn --frozen-lockfile - name: Run style check run: yarn lint && yarn prettier-check cypress_no_meilisearch: @@ -37,8 +39,10 @@ jobs: node-version: 18 cache: "yarn" cache-dependency-path: yarn.lock + - name: Enable Corepack + run: corepack enable - name: Install dependencies - run: yarn + run: yarn --frozen-lockfile - name: Test no meilisearch running uses: cypress-io/github-action@v6 with: