From 24781f84fc9d793e55a99d524a75ee9bded1fe18 Mon Sep 17 00:00:00 2001 From: Phil Bates Date: Fri, 26 Jan 2024 09:14:22 +0000 Subject: [PATCH 1/3] Workflows: Create job that runs "pnpm dedupe --check" See https://github.com/pnpm/pnpm/issues/6105#issuecomment-1437581590 --- .github/workflows/frontend.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2134a05..95a6d3a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -7,6 +7,18 @@ on: pull_request: jobs: + dedupe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.14.1 + - name: Install dependencies + run: pnpm install + - name: Check dedupe + run: pnpm dedupe --check + test: runs-on: ubuntu-latest steps: From cbd437f8acff5f252d57a93c6a4cbf07141eccfc Mon Sep 17 00:00:00 2001 From: Phil Bates Date: Fri, 26 Jan 2024 09:19:28 +0000 Subject: [PATCH 2/3] Workflows: Validate composer.json and composer.lock --- .github/workflows/backend.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 71b37d6..0e5e9ca 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -7,6 +7,16 @@ on: pull_request: jobs: + composer-validate: + runs-on: ubuntu-latest + steps: + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + - uses: actions/checkout@v4 + - name: Validate + run: composer validate --strict --check-lock + test: runs-on: ubuntu-latest steps: From 6ec02176c2d576c99cb383332a7879edb860997d Mon Sep 17 00:00:00 2001 From: Phil Bates Date: Fri, 26 Jan 2024 09:21:23 +0000 Subject: [PATCH 3/3] pnpm: Set strict-peer-dependencies=true Because strict is better. --- .npmrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmrc b/.npmrc index 093246b..4f94a8e 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ engine-strict=true +strict-peer-dependencies=true use-node-version=20.11.0