github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/bitbucket/yaml/testdata/steps/example18.yaml (about)

     1  # Example using the artifacts paths option to retain files for use in later steps
     2  
     3  pipelines:
     4    default:
     5      - step:
     6          name: Build and test
     7          script:
     8            - npm install
     9            - npm run build
    10          artifacts: # Store build artifacts for use in the following steps
    11            - dist/**
    12      - step:
    13          name: lint code and store results
    14          script:
    15            - npm lint > results.txt
    16          artifacts:
    17            download: false # Block artifacts downloading, they're not needed for this step
    18            paths: # Store the linting result (in addition to the dist/ directory)
    19              - results.txt
    20      - step:
    21          name: Test code from build step stored in the dist/ directory
    22          script:
    23            - npm test