Skip to content

Commit

Permalink
Merge pull request #13 from philbates35/validate-composer-pnpm
Browse files Browse the repository at this point in the history
Validate package.json, pnpm-lock.yaml, composer.json & composer.lock, and use strict-peer-dependencies
  • Loading branch information
philbates35 authored Jan 26, 2024
2 parents bb9f242 + 6ec0217 commit dc0111d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
engine-strict=true
strict-peer-dependencies=true
use-node-version=20.11.0

0 comments on commit dc0111d

Please sign in to comment.