File tree Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,26 @@ concurrency:
21
21
permissions : {}
22
22
23
23
jobs :
24
- run :
25
- runs-on : ubuntu-22.04
26
- permissions : {}
24
+ build :
25
+ name : build
26
+ runs-on : ubuntu-24.04
27
+ container : ghcr.io/datadog/images-rb/engines/ruby:3.3
28
+ outputs :
29
+ lockfile : ${{ steps.bundle-cache.outputs.lockfile }}
30
+ cache-key : ${{ steps.bundle-cache.outputs.cache-key }}
31
+ steps :
32
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33
+ with :
34
+ persist-credentials : false
35
+ - name : Prepare bundle cache
36
+ id : bundle-cache
37
+ uses : ./.github/actions/bundle-cache
38
+
39
+ rubocop :
40
+ name : rubocop/lint
41
+ runs-on : ubuntu-24.04
42
+ needs : ['build']
43
+ container : ghcr.io/datadog/images-rb/engines/ruby:3.3
27
44
steps :
28
45
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29
46
with :
33
50
with :
34
51
lockfile : ${{ needs.build.outputs.lockfile }}
35
52
cache-key : ${{ needs.build.outputs.cache-key }}
36
-
37
53
- name : Check for missing documentation
38
- run : bundle exec ruby .github/scripts/check_config_doc.rb
54
+ run : bundle exec ruby .github/scripts/check_config_doc.rb
Original file line number Diff line number Diff line change @@ -141,6 +141,22 @@ jobs:
141
141
- name : Run yamllint
142
142
run : yamllint --strict .
143
143
144
+ check_config_doc :
145
+ name : check_config_doc/lint
146
+ runs-on : ubuntu-24.04
147
+ needs : [ 'build' ]
148
+ container : ghcr.io/datadog/images-rb/engines/ruby:3.3
149
+ steps :
150
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
151
+ with :
152
+ persist-credentials : false
153
+ - name : Restore bundle cache
154
+ uses : ./.github/actions/bundle-restore
155
+ with :
156
+ lockfile : ${{ needs.build.outputs.lockfile }}
157
+ cache-key : ${{ needs.build.outputs.cache-key }}
158
+ - run : bundle exec ruby .github/scripts/check_config_doc.rb
159
+
144
160
complete :
145
161
name : Static Analysis (complete)
146
162
needs :
@@ -151,6 +167,7 @@ jobs:
151
167
- ' zizmor'
152
168
- ' actionlint'
153
169
- ' yaml-lint'
170
+ - ' check_config_doc'
154
171
runs-on : ubuntu-24.04
155
172
steps :
156
173
- run : echo "Done"
You can’t perform that action at this time.
0 commit comments