From 073c586194cbed03f150f959bba9caa21ac2fcf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laureline=20Val=C3=A9rie=20David?= Date: Mon, 13 May 2024 15:25:39 +0200 Subject: [PATCH 1/2] fix: Enable Corepack in CI --- .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 121a180..dfaf81d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,20 +7,27 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Enable Corepack + run: corepack enable - name: Setup Node.js environment uses: actions/setup-node@v3.7.0 with: node-version: ">=18.0.0" + cache: 'yarn' - name: Test run: yarn install && yarn test + format: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 + - name: Enable Corepack + run: corepack enable - name: Setup Node.js environment uses: actions/setup-node@v3.7.0 with: node-version: ">=18.0.0" + cache: 'yarn' - name: Test - run: yarn prettier --check . + run: yarn install && yarn prettier --check . From c75b5eac61881606446cfa856de3ead216ab042b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laureline=20Val=C3=A9rie=20David?= Date: Mon, 13 May 2024 15:27:02 +0200 Subject: [PATCH 2/2] Disable yarn cache (buggy with corepack?) --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfaf81d..a464f76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,6 @@ jobs: uses: actions/setup-node@v3.7.0 with: node-version: ">=18.0.0" - cache: 'yarn' - name: Test run: yarn install && yarn test @@ -28,6 +27,5 @@ jobs: uses: actions/setup-node@v3.7.0 with: node-version: ">=18.0.0" - cache: 'yarn' - name: Test run: yarn install && yarn prettier --check .