Skip to content

Commit 1f28b4a

Browse files
committed
Maintenance: Use file instead of identify, update support matrix
1 parent 5610c0d commit 1f28b4a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
node-version:
1010
- 18.x
1111
- 20.x
12-
- 21.x
12+
- 22.x
13+
- 23.x
1314
steps:
1415
- uses: actions/checkout@v4
1516
- uses: actions/setup-node@v4

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
},
2525
"dependencies": {
2626
"faucet-pipeline-core": "^2.0.0",
27-
"sharp": "^0.33.2",
28-
"svgo": "^3.0.2"
27+
"sharp": "^0.33.5",
28+
"svgo": "^3.3.2"
2929
},
3030
"devDependencies": {
3131
"eslint-config-fnd": "^1.13.0",

test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function assert_svg {
4949
# checks the dimensions of an image, requires ImageMagick
5050
function assert_dimensions {
5151
expected_dimensions="${1:?}"
52-
actual_dimensions=$(identify -format "%wx%h" "${2:?}")
52+
actual_dimensions=$(file "${2:?}" | grep -oE "[0-9]+x[0-9]+")
5353

5454
if [ "$expected_dimensions" == "$actual_dimensions" ]; then
5555
true

0 commit comments

Comments
 (0)