Scheduling infrastructure for absolutely everyone.
chore: Cache node_modules (#9492)
Keith Williams9db4a04cd938
diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.ymlindex 216cdce6de6..0ce62d38717 100644--- a/.github/actions/yarn-install/action.yml+++ b/.github/actions/yarn-install/action.yml@@ -40,6 +40,14 @@ runs:restore-keys: |yarn-download-cache-+ # Invalidated on yarn.lock changes+ - name: Restore node_modules+ id: yarn-nm-cache+ uses: buildjet/cache@v3+ with:+ path: "**/node_modules/"+ key: ${{ runner.os }}-yarn-nm-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}+# Invalidated on yarn.lock changes- name: Restore yarn install stateid: yarn-install-state-cache@@ -58,5 +66,6 @@ runs:YARN_ENABLE_IMMUTABLE_INSTALLS: "false" # So it doesn't try to remove our private submodule depsYARN_ENABLE_GLOBAL_CACHE: "false" # Use local cache folder to keep downloaded archivesYARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz # Very small speedup when lock does not change+ YARN_NM_MODE: "hardlinks-local" # Reduce node_modules size# Other environment variablesHUSKY: "0" # By default do not run HUSKY installdiff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex b566168d0a7..47a5c19102a 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -9,7 +9,7 @@ jobs:- uses: actions/checkout@v3- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- - name: Save Code Linting Reports+ - name: Run Linting with Reportsrun: yarn lint:reportcontinue-on-error: truediff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex e42cc70e91d..7bba9c794cb 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -16,6 +16,7 @@ concurrency:jobs:changes:+ name: Detect changesruns-on: buildjet-4vcpu-ubuntu-2204permissions:pull-requests: read