Skip to content
Snippets Groups Projects
Select Git revision
  • 961b565ee42a1cb5be4e566e3d65ab01168831c1
  • master default protected
  • maj-readme
  • update-budget-msg-2022
  • share-with-metadata
  • explications-resultats-macros-PLF2022
  • plf_fix
  • benoit-cty-master-patch-87290
  • activate-plf-2021
  • stats
  • switch-plf
  • carto
  • adapt-matomo
  • js-to-ts
  • nbre-part-logic
  • add-nbre-part
  • 1.0.0
17 results

config.yml

Blame
  • config.yml 1.12 KiB
    version: 2
    jobs:
      install:
        docker:
          - image: node:12
    
        steps:
          - checkout
    
          - restore_cache:
              key: v1-node12-{{ .Branch }}-{{ checksum "package.json" }}
    
          - run:
              name: Install dependencies
              command: |
                npm install -g npm@6.13
                npm install
    
          - save_cache:
              key: v1-node12-{{ .Branch }}-{{ checksum "package.json" }}
              paths:
                - ./node_modules
    
      test:
        docker:
          - image: node:12
    
        steps:
          - checkout
    
          - restore_cache:
              key: v1-node12-{{ .Branch }}-{{ checksum "package.json" }}
    
          - run:
              name: Run tests
              command: npm test
    
      check_linting:
        docker:
          - image: node:12
    
        steps:
          - checkout
    
          - restore_cache:
              key: v1-node12-{{ .Branch }}-{{ checksum "package.json" }}
    
          - run:
              name: Check code linting
              command: npm run code:check
    
    workflows:
      version: 2
      test_and_check_linting:
        jobs:
          - install
          - test:
              requires:
                - install
          - check_linting:
              requires:
                - install