From 72f3f16f8e67709cd5d842084b9589c5c231bb9f Mon Sep 17 00:00:00 2001 From: John Haupenthal Date: Fri, 17 May 2024 19:59:59 -0700 Subject: [PATCH] test: test --- .github/workflows/tsc-check.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tsc-check.yml b/.github/workflows/tsc-check.yml index 96e7329..8045627 100644 --- a/.github/workflows/tsc-check.yml +++ b/.github/workflows/tsc-check.yml @@ -52,6 +52,16 @@ jobs: git checkout ${{ github.base_ref }} echo "Creating output directory" mkdir -p base-tsc-output + + # Install dependencies from Yarn cache if it exists + if [ -d ~/.cache/yarn ]; then + echo "Using Yarn cache" + cp -r ~/.cache/yarn .cache + else + echo "Yarn cache not found" + yarn install + fi + echo "Running tsc" npx tsc --noEmit --pretty false 2> base-tsc-output/tsc_errors.txt || { echo 'tsc command failed'; cat base-tsc-output/tsc_errors.txt; exit 1; } echo "Extracting errors"