Skip to content

Commit 126b210

Browse files
committed
Try to fix i
1 parent ed40084 commit 126b210

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

.github/workflows/check-config-doc.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,26 @@ concurrency:
2121
permissions: {}
2222

2323
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
2744
steps:
2845
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2946
with:
@@ -33,6 +50,5 @@ jobs:
3350
with:
3451
lockfile: ${{ needs.build.outputs.lockfile }}
3552
cache-key: ${{ needs.build.outputs.cache-key }}
36-
3753
- 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

.github/workflows/check.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,22 @@ jobs:
141141
- name: Run yamllint
142142
run: yamllint --strict .
143143

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+
144160
complete:
145161
name: Static Analysis (complete)
146162
needs:
@@ -151,6 +167,7 @@ jobs:
151167
- 'zizmor'
152168
- 'actionlint'
153169
- 'yaml-lint'
170+
- 'check_config_doc'
154171
runs-on: ubuntu-24.04
155172
steps:
156173
- run: echo "Done"

0 commit comments

Comments
 (0)