Openzeppelin-contracts: Minor refactoring of .circleci yaml?

Created on 14 Aug 2019  路  5Comments  路  Source: OpenZeppelin/openzeppelin-contracts

I wanted ask about: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/.circleci/config.yml

I think

  coverage:
    docker:
      - image: circleci/node:8

could simply take advantage of the alias defined earlier and use:

  coverage:
    <<: *defaults

Is there a reason why it doesn't?

Also, I was curious about perhaps adding an alias for:

      - checkout
      - restore_cache:
          <<: *cache_key_node_modules
      - *npm_install_if_necessary

Since it pops up everywhere. Would this be overkill?

Thanks,
Luiserebii~

Most helpful comment

Closed by accident, apologies, haha.

All 5 comments

I have not used *defaults, not sure if it applies to only circleci config version 2.1. Feel free to try it. If it works, I would suggest this change

Sure, ok, will try now!

Closed by accident, apologies, haha.

Closing as PR has been merged: #1885

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiaoyao1991 picture xiaoyao1991  路  3Comments

Flash-Git picture Flash-Git  路  3Comments

golivax picture golivax  路  4Comments

fulldecent picture fulldecent  路  3Comments

LogvinovLeon picture LogvinovLeon  路  4Comments