Skip to content

Commit a7697d8

Browse files
committed
DX-1846: Disable debug
Disable debug to avoid HTMLProofer loading awesome_print, because it leads to the following failure: ``` Traceback (most recent call last): 10: from /var/jekyll/entrypoint/lib/entrypoint.rb:3:in `<main>' 9: from /var/jekyll/entrypoint/lib/entrypoint.rb:3:in `require_relative' 8: from /var/jekyll/entrypoint/lib/commander.rb:7:in `<top (required)>' 7: from /var/jekyll/entrypoint/lib/commander.rb:7:in `require_relative' 6: from /var/jekyll/entrypoint/lib/commands/verifier.rb:4:in `<top (required)>' 5: from /var/jekyll/entrypoint/lib/commands/verifier.rb:4:in `require' 4: from /usr/gem/ruby/2.7.0/gems/html-proofer-4.4.0/lib/html-proofer.rb:3:in `<top (required)>' 3: from /usr/gem/ruby/2.7.0/gems/html-proofer-4.4.0/lib/html-proofer.rb:3:in `require_relative' 2: from /usr/gem/ruby/2.7.0/gems/html-proofer-4.4.0/lib/html_proofer.rb:18:in `<top (required)>' 1: from /usr/gem/ruby/2.7.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in `require' ``` https://github.com/SwedbankPay/jekyll-plantuml-docker/actions/runs/3079379097/jobs/4975588911#step:5:2106
1 parent 96216da commit a7697d8

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ jobs:
9797
--image-tag ${{ needs.variables.outputs.ghpr_docker_image_tag }} \
9898
--repository ${{ github.repository }} \
9999
--dir ${{ github.workspace }}/tests/full \
100-
--token ${{ secrets.GITHUB_TOKEN }} \
101-
--verbose
100+
--token ${{ secrets.GITHUB_TOKEN }}
102101
103102
test-serve-no-gemfile:
104103
runs-on: ubuntu-latest
@@ -114,8 +113,7 @@ jobs:
114113
--image-tag ${{ needs.variables.outputs.ghpr_docker_image_tag }} \
115114
--repository ${{ github.repository }} \
116115
--dir ${{ github.workspace }}/tests/minimal \
117-
--token ${{ secrets.GITHUB_TOKEN }} \
118-
--verbose
116+
--token ${{ secrets.GITHUB_TOKEN }}
119117
120118
test-build:
121119
runs-on: ubuntu-latest
@@ -130,8 +128,7 @@ jobs:
130128
--image-tag ${{ needs.variables.outputs.ghpr_docker_image_tag }} \
131129
--repository ${{ github.repository }} \
132130
--dir ${{ github.workspace }}/tests/full \
133-
--token ${{ secrets.GITHUB_TOKEN }} \
134-
--verbose
131+
--token ${{ secrets.GITHUB_TOKEN }}
135132
136133
test-build-no-gemfile:
137134
runs-on: ubuntu-latest
@@ -146,8 +143,7 @@ jobs:
146143
--image-tag ${{ needs.variables.outputs.ghpr_docker_image_tag }} \
147144
--repository ${{ github.repository }} \
148145
--dir ${{ github.workspace }}/tests/minimal \
149-
--token ${{ secrets.GITHUB_TOKEN }} \
150-
--verbose
146+
--token ${{ secrets.GITHUB_TOKEN }}
151147
152148
test-build-gemspec:
153149
runs-on: ubuntu-latest
@@ -163,8 +159,7 @@ jobs:
163159
--image-tag ${{ needs.variables.outputs.ghpr_docker_image_tag }} \
164160
--repository ${{ github.repository }} \
165161
--dir ${{ github.workspace }}/tests/gemspec \
166-
--token ${{ secrets.GITHUB_TOKEN }} \
167-
--verbose
162+
--token ${{ secrets.GITHUB_TOKEN }}
168163
169164
rspec:
170165
runs-on: ubuntu-latest
@@ -206,14 +201,14 @@ jobs:
206201
docker pull "${IMAGE_FQN}"
207202
docker run \
208203
--volume $(pwd)/tests/full:/srv/jekyll \
209-
--env DEBUG=true \
204+
--env DEBUG=false \
210205
--env GITHUB_BRANCH=${{ needs.variables.outputs.build_branch }} \
211206
--env GITHUB_REPOSITORY_URL=${{ github.event.repository.html_url }} \
212207
"${IMAGE_FQN}" \
213208
build \
214209
--verify \
215210
--env=production \
216-
--log-level=debug \
211+
--log-level=error \
217212
--site-url=https://example.com/ \
218213
--ignore-url '%r{[/.]?page1}' \
219214
--ignore-url http://www.wikipedia.org \
@@ -241,13 +236,13 @@ jobs:
241236
docker pull "${IMAGE_FQN}"
242237
docker run \
243238
--volume $(pwd)/tests/full:/srv/jekyll \
244-
--env DEBUG=true \
239+
--env DEBUG=false \
245240
--env GITHUB_BRANCH=${{ needs.variables.outputs.build_branch }} \
246241
--env GITHUB_REPOSITORY_URL=${{ github.event.repository.html_url }} \
247242
"${IMAGE_FQN}" \
248243
build \
249244
--env=production \
250-
--log-level=debug \
245+
--log-level=error \
251246
--site-url=https://swedbankpay.github.io/jekyll-plantuml-docker/
252247
253248
- name: Verify base URL
@@ -286,11 +281,11 @@ jobs:
286281
--env GIT_DEPLOY_REPO="${GIT_DEPLOY_REPO}" \
287282
--env PAGES_REPO_NWO="${{ github.repository }}" \
288283
--env JEKYLL_GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
289-
--env DEBUG="true" \
284+
--env DEBUG=false \
290285
${IMAGE_NAME}:${IMAGE_TAG} \
291286
deploy \
292287
--env=production \
293-
--log-level=debug
288+
--log-level=error
294289
295290
cleanup:
296291
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)