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

     1  # Example using the download option to prevent artifacts from downloading in a step
     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      - step:
    19          name: Test code from build step stored in the dist/ directory
    20          script:
    21            - npm test