Skip to content

Commit

Permalink
Add CI engines check for prod deps (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored Dec 7, 2024
1 parent 38760db commit 55e03bd
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 128 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,23 @@ jobs:
id: format
continue-on-error: true

- name: Run Engines Check
run: node scripts/check-deps.mjs engines
id: engines
continue-on-error: true

- name: Run Licenses Check
run: node scripts/check-deps.mjs licenses
id: licenses
continue-on-error: true

- name: Check Results
run: |
declare -A OUTCOMES=(
[lint]="${{ steps.lint.outcome }}"
[format]="${{ steps.format.outcome }}"
[engines]="${{ steps.engines.outcome }}"
[licenses]="${{ steps.licenses.outcome }}"
)
STATUS=0
for STEP in "${!OUTCOMES[@]}"; do
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "^1.9.3",
"prettier": "^2.8.8",
"turbo": "^1.10.8"
"turbo": "^1.10.8",
"semver": "^7.6.3"
}
}
Loading

0 comments on commit 55e03bd

Please sign in to comment.