version: '1.0'

steps:
  build_agent:
    type: build
    image_name: test_agent
    working_directory: ${{main_clone}}/agent
    tag: latest

version: '1.0'

steps:

  agent_test:
    image: node:7.2.0
    working_directory: ${{main_clone}}/agent
    commands:
      - npm i -g yarn
      - yarn install
      - yarn test

  agent_build:
    type: build
    image_name: test_agent
    working_directory: ${{main_clone}}/agent
    tag: latest

Add agent test step in CI
Add agent test step in CI
