From a253df5f427c3a176f47dd8408ad4aa1ee32e06b Mon Sep 17 00:00:00 2001 From: Matthew White Date: Wed, 8 May 2024 16:42:58 -0400 Subject: [PATCH 1/3] Check for large files in CircleCI --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b0399d46e..06e74cc29 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,12 @@ jobs: steps: - checkout + - run: + name: Check for large files + command: | + set +e + find . -size +1Mc -not -path './.git/*' | grep . + (( $? == 1 )) - run: make check-file-headers - run: npm ci --legacy-peer-deps - run: node lib/bin/create-docker-databases.js From cd754b7dee8e492db42c4dbdb62d3f66d9437309 Mon Sep 17 00:00:00 2001 From: Matthew White Date: Wed, 8 May 2024 17:14:17 -0400 Subject: [PATCH 2/3] Don't use M with -size --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 06e74cc29..5b41f8fb6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: name: Check for large files command: | set +e - find . -size +1Mc -not -path './.git/*' | grep . + find . -size +1000000c -not -path './.git/*' | grep . (( $? == 1 )) - run: make check-file-headers - run: npm ci --legacy-peer-deps From e4239959b5a8dcba71e0414b7b613f185c06b11a Mon Sep 17 00:00:00 2001 From: Matthew White Date: Tue, 14 May 2024 20:31:52 -0400 Subject: [PATCH 3/3] Use [[ ... ]] instead of (( ... )) --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b41f8fb6..2afad4360 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ jobs: command: | set +e find . -size +1000000c -not -path './.git/*' | grep . - (( $? == 1 )) + [[ $? -eq 1 ]] - run: make check-file-headers - run: npm ci --legacy-peer-deps - run: node lib/bin/create-docker-databases.js