github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/circle/yaml/testdata/tutorial-node/example1.yaml (about)

     1  # https://circleci.com/docs/language-javascript/#build-and-test-the-app
     2  
     3  version: 2.1
     4  
     5  orbs:
     6    node: circleci/node@5.0.2
     7  
     8  jobs:
     9    build_and_test: # this can be any name you choose
    10      executor: node/default # use the default executor defined within the orb
    11      steps:
    12        - checkout
    13        - node/install-packages:
    14            pkg-manager: yarn
    15        - run:
    16            command: yarn test
    17            name: Run tests
    18        - run:
    19            command: yarn build
    20            name: Build app
    21        - persist_to_workspace:
    22            root: ~/project
    23            paths: .
    24  
    25  workflows:
    26    build:
    27      jobs:
    28        - build_and_test