Run test on specific branches


I’m trying to run tests on specific branches.
I followed the documentation with a basic circle.yml but unfortunately I always got thi error:

We weren’t able to start this workflow.

Encountered errors trying to create workflows from this config: Config does not conform to schema: {:workflows {:general {:branches disallowed-key}}}

For more examples see the Workflows documentation.


Which I don’t understand because my file looks very basic…
Anyone can help me ?

My file:

Javascript Node CircleCI 2.0 configuration file

# Check for more details
version: 2

        - master
        - aslib

      # specify the version you desire here
      - image: circleci/node:latest-browsers-legacy

    working_directory: ~/repo

      - checkout

      # installing java jdk
      - run:
          name: Install java jdk
          command: |
            curl -L -b "oraclelicense=a" -O
            sudo mkdir /usr/local/oracle-java-8
            sudo tar -zxf jdk-8u181-linux-x64.tar.gz -C /usr/local/oracle-java-8
            sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/oracle-java-8/jdk1.8.0_181/bin/java" 1500
            sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/oracle-java-8/jdk1.8.0_181/bin/javac" 1500
            sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/oracle-java-8/jdk1.8.0_181/bin/javaws" 1500
            java -version

      # installing babel + nightwatch
      - run:
          name: Install babel + nightwatch
          command: |
            sudo npm install babel-cli -g
            sudo npm install nightwatch -g
      - run:
          name: Run react_app + tests
          command: |
            npm install
            npm start &
            cd tests
            npm install
            sleep 150
            npm start -- --env circle

This has been reported a few times. Move your branch restriction to a workflow and it will work - it seems to be a bug when the restriction is applied to a job.

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