Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ on:
required: false
type: string
default: backend
content-folders:
required: false
type: string
default: "backend/src/kitconcept/intranet/distributions/intranet/content"

jobs:

lint:
name: "Backend: Lint"
uses: plone/meta/.github/workflows/backend-lint.yml@2.x
Expand All @@ -31,6 +36,23 @@ jobs:
plone-version: ${{ inputs.kc-version }}
working-directory: ${{ inputs.working-directory }}

content:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch all history
fetch-depth: '0'

- name: 'Example Content QA: Evaluate Image Sizes'
uses: kitconcept/image-checker@v1.1.0
with:
paths: '${{ inputs.content-folders }}'
max-size: '1048576' # 1 MB
max-width: '1920'
max-height: '1080'
fail-on-error: false

# Removed for now since coverage takes forever and
# nobody really looks at the results or try to improve them.
# https://gitlab.kitconcept.io/kitconcept/distribution-kitconcept-intranet/-/issues/275
Expand Down
1 change: 1 addition & 0 deletions news/+contentqa.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GHA: Implement example content step for the backend workflow. @ericof
Loading