Sha256: 798e08501db6a258645e65d45eb2754d331a2c76264bbb8b93bda2dac974af35

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.6-node-browsers
    steps:
      - checkout

      # Bundle install dependencies
      - type: cache-restore
        key: v1-main-{{ checksum "Gemfile.lock" }}

      - run: gem install bundler --version `tail -1 Gemfile.lock`
      - run: bundle install --path vendor/bundle

      - type: cache-save
        key: v1-main-{{ checksum "Gemfile.lock" }}
        paths:
          - vendor/bundle

      # Bundle install dependencies for example app
      - type: cache-restore
        key: v1-example-{{ checksum "example/an_app/Gemfile.lock" }}

      - run: |
          cd example/an_app
          bundle install --path vendor/bundle

      - type: cache-save
        key: v1-example-{{ checksum "example/an_app/Gemfile.lock" }}
        paths:
          - example/an_app/vendor/bundle

      # Yarn dependencies
      - restore_cache:
          keys:
            - v3-yarn-{{ checksum "example/an_app/package.json" }}
            # fallback to using the latest cache if no exact match is found
            - v3-yarn-

      - run: |
          cd example/an_app
          yarn install

      - save_cache:
          paths:
            - example/an_app/node_modules
            - ~/.cache
          key: v3-yarn-{{ checksum "example/an_app/package.json" }}

      - run: bundle exec rake
      - run: ./script/test_example_app

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cypress-rails-0.4.0 .circleci/config.yml