Skip to content

Commit b23dddf

Browse files
authored
Merge pull request #72 from buildkite/toote_alphabetized_attrs
Alphabetized attrs
2 parents c62fea8 + 0db05fd commit b23dddf

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

app/lib/bk/compat/pipeline/step.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def instantiate
4747

4848
# basic command step
4949
class CommandStep
50-
attr_accessor :agents, :concurrency, :concurrency_group, :conditional, :depends_on, :key, :label,
51-
:matrix, :parameters, :plugins, :soft_fail, :timeout_in_minutes, :transformer, :artifact_paths,
52-
:branches
50+
attr_accessor :agents, :artifact_paths, :branches, :concurrency, :concurrency_group,
51+
:conditional, :depends_on, :key, :label, :matrix, :parameters, :plugins,
52+
:soft_fail, :timeout_in_minutes, :transformer
5353

5454
attr_reader :commands, :env # we define special writers
5555

56-
LIST_ATTRIBUTES = %w[commands depends_on plugins artifact_paths].freeze
56+
LIST_ATTRIBUTES = %w[artifact_paths commands depends_on plugins].freeze
5757
HASH_ATTRIBUTES = %w[agents env matrix parameters].freeze
5858

5959
def initialize(**kwargs)

app/spec/lib/bk/compat/__snapshots__/examples/github-actions/django-ci-test.yaml.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
steps:
3-
- commands:
3+
- artifact_paths:
4+
- vendor/output/bin/**/*
5+
- vendor/output/test-results
6+
- vendor2/output/bin/*.log
7+
commands:
48
- "# action actions/checkout@v2 is not necessary in Buildkite"
59
- echo '~~~ Install requirements'
610
- pip install -r requirements.txt
@@ -10,10 +14,6 @@ steps:
1014
plugins:
1115
- docker#v5.7.0:
1216
image: python:3.8
13-
artifact_paths:
14-
- vendor/output/bin/**/*
15-
- vendor/output/test-results
16-
- vendor2/output/bin/*.log
1717
agents:
1818
runs-on: ubuntu-latest
1919
label: ":github: simple_build"

app/spec/lib/bk/compat/__snapshots__/examples/github-actions/laravel-tests.yml.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
steps:
3-
- commands:
3+
- artifact_paths:
4+
- vendor/orchestra/testbench-core/laravel/storage/logs
5+
commands:
46
- "# It may be a good idea to use docker compose to start up job-specific services"
57
- echo 'Starting memcached service'
68
- docker start --rm -d --name memcached --expose '11211:11211' memcached:1.6-alpine
@@ -30,8 +32,6 @@ steps:
3032
- vendor/bin/phpunit --display-deprecation
3133
- )
3234
- docker stop memcached mysql redis dynamodb
33-
artifact_paths:
34-
- vendor/orchestra/testbench-core/laravel/storage/logs
3535
agents:
3636
runs-on: ubuntu-22.04
3737
matrix:

0 commit comments

Comments
 (0)