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

     1  kind: pipeline
     2  spec:
     3    stages:
     4    - name: build
     5      spec:
     6        platform:
     7          arch: amd64
     8          os: linux
     9        runtime:
    10          spec: {}
    11          type: cloud
    12        steps:
    13        - name: install_deps
    14          spec:
    15            run: |-
    16              bundle config deployment 'true'
    17              bundle config gemfile "Gemfile"
    18              bundle config path "./vendor/bundle"
    19              bundle check || bundle install
    20          type: script
    21        - name: install_packages
    22          spec:
    23            run: yarn install
    24          type: script
    25      type: ci
    26    - name: checking
    27      spec:
    28        platform:
    29          arch: amd64
    30          os: linux
    31        runtime:
    32          spec: {}
    33          type: cloud
    34        steps:
    35        - name: install_deps
    36          spec:
    37            run: |-
    38              bundle config deployment 'true'
    39              bundle config gemfile "Gemfile"
    40              bundle config path "./vendor/bundle"
    41              bundle check || bundle install
    42          type: script
    43        - name: rubocop_check
    44          spec:
    45            run: |-
    46              mkdir -p "/tmp/rubocop-results"
    47              bundle exec rubocop . --out /tmp/rubocop-results/check-results.xml --format progress
    48          type: script
    49      type: ci
    50    - name: test
    51      spec:
    52        envs:
    53          BUNDLE_JOBS: "3"
    54          BUNDLE_RETRY: "3"
    55          PGHOST: 127.0.0.1
    56          PGPASSWORD: ""
    57          PGUSER: circleci-demo-ruby
    58          RAILS_ENV: test
    59        platform:
    60          arch: amd64
    61          os: linux
    62        runtime:
    63          spec: {}
    64          type: cloud
    65        steps:
    66        - spec:
    67            envs:
    68              POSTGRES_DB: rails_blog_test
    69              POSTGRES_PASSWORD: ""
    70              POSTGRES_USER: circleci-demo-ruby
    71            image: circleci/postgres:9.5-alpine
    72          type: background
    73        - name: install_deps
    74          spec:
    75            run: |-
    76              bundle config deployment 'true'
    77              bundle config gemfile "Gemfile"
    78              bundle config path "./vendor/bundle"
    79              bundle check || bundle install
    80          type: script
    81        - name: install_packages
    82          spec:
    83            run: yarn install
    84          type: script
    85        - name: Wait for DB
    86          spec:
    87            image: cimg/ruby:2.7-node
    88            run: |-
    89              set -eo pipefail
    90              dockerize -wait tcp://localhost:5432 -timeout 1m
    91            shell: bash
    92          type: script
    93        - name: Database setup
    94          spec:
    95            image: cimg/ruby:2.7-node
    96            run: |-
    97              set -eo pipefail
    98              bundle exec rails db:schema:load --trace
    99            shell: bash
   100          type: script
   101        - name: rspec_test
   102          spec:
   103            run: |-
   104              mkdir -p "/tmp/test-results/rspec"
   105              bundle exec rspec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec/results.xml --format progress
   106          type: script
   107      type: ci
   108  version: 1