From 6e0644a082dd07dc25de4bbfc294817e89eecee4 Mon Sep 17 00:00:00 2001 From: Rares Matei Date: Thu, 19 Dec 2024 21:15:56 +0000 Subject: [PATCH] use new caching recommendations on agents --- launch-templates/linux.yaml | 70 +++++++++++-------------------------- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/launch-templates/linux.yaml b/launch-templates/linux.yaml index 7279130..27bf0a3 100644 --- a/launch-templates/linux.yaml +++ b/launch-templates/linux.yaml @@ -9,14 +9,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -32,14 +28,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -55,14 +47,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -78,14 +66,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -101,14 +85,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -124,14 +104,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml' @@ -147,14 +123,10 @@ launch-templates: uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' inputs: key: 'package-lock.json|yarn.lock|pnpm-lock.yaml' - paths: 'node_modules' - base-branch: 'main' - - name: Restore Browser Binary Cache - uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml' - inputs: - key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|"browsers"' paths: | - '../.cache/Cypress' + ~/.cache/yarn + ~/.npm + .pnpm-store base-branch: 'main' - name: Install Node Modules uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml'