github.com/ulule/limiter/v3@v3.11.3-0.20230613131926-4cb9c1da4633/.circleci/config.yml (about)

     1  version: 2
     2  
     3  jobs:
     4    build:
     5      machine:
     6        image: circleci/classic:edge
     7        docker_layer_caching: true
     8      steps:
     9        - checkout
    10        - run:
    11            name: Checkout submodules
    12            command: |
    13              git submodule sync
    14              git submodule update --init
    15  
    16        - run:
    17            name: Start docker container for redis
    18            command: scripts/redis
    19  
    20        - run:
    21            name: Run tests
    22            command: scripts/go-wrapper scripts/test
    23            environment:
    24              GO111MODULE: on
    25              REDIS_DISABLE_BOOTSTRAP: false
    26              REDIS_URI: redis://localhost:26379/1
    27  
    28        - run:
    29            name: Run linters
    30            command: scripts/go-wrapper scripts/lint
    31            environment:
    32              GO111MODULE: on