Am I required to use workflows?

workflow

#1

Hi, I’m currently trying to just install my dependencies, run my tests, and store the artifacts (as I did in version 1.0). My config.yml is:

version: 2
jobs:
   build:
     docker:
       - image: circleci/node:6.10.3-browsers
     steps:
       - checkout
       - run:
          name: Install dependencies
          command: npm install
       - run:
          name: Install Grunt CLI
          command: sudo npm install -g grunt grunt-cli
       - run:
          name: Update Selenium drivers
          command: node_modules/.bin/webdriver-manager update
       - run:
          name: Run API Tests
          command: grunt apiTests
       - run:
          name: Install Chromedriver latest version
          command: |
            sudo apt-get update
            sudo apt-get install lsb-release
            curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
            sudo dpkg -i google-chrome.deb
            sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
            rm google-chrome.deb
  test:
    docker:
      - image: circleci/node:6.10.3-browsers
    steps:
      - checkout
       - run:
          name: Run UI Tests
          command: |
            if [[ "${CIRCLE_BRANCH}" == "development" ]]
            then
            node_modules/.bin/protractor conf.js
            fi
      - store_artifacts:
          path: sed -i -- 's,//,/,g' test_evidences/htmlReport.html
          prefix: tests

I am currently not able to run these steps without workflow, because im getting error


#2

If you don’t want to use Workflows, compact this config into a single job called “build”.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.