Restore cache of sub project

cache

#1

Is it possible to store cache for sub-projects? This is my config.yml:

version: 2
jobs:
    build:
        machine: true
        working_directory: ~/komed-health
        steps:
            - checkout
            - restore_cache:
                key: dependency-cache-{{ checksum "package.json" }}
            - run: npm install
            - save_cache:
                key: dependency-cache-{{ checksum "package.json" }}
                paths:
                    - ./node_modules
            - run:
                name: Start containers
                command: |
                    cd .docker
                    set -x
                    docker-compose up -d
            - run:
                name: Clone komed health web project and initialize it
                command: |
                    cd ../
                    git clone git@github.com:BorntraegerMarc/komed-health-web.git
                    cd komed-health-web
                    npm install --production
            - run:
                name: Run integration tests
                command: npm run test-integration

As you can see I am cloning another project (BorntraegerMarc/komed-health-web) into the existing CI build and running npm install on that project as well. Can I save the cache from this new project as well somehow?


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.