Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action to check that the font cachebuster was updated #20973

Merged
merged 8 commits into from
Jul 10, 2023

Conversation

bx80
Copy link
Contributor

@bx80 bx80 commented Jul 6, 2023

Description:

Fixes #20991

This is a simple github action to check that the font cachebuster parameter was updated whenever the Matomo font file has changed. It's pretty basic implementation using sed and wget.

If the font has been updated then it will compare the Matomo font URL line from the icons stylesheet in the PR branch against the base branch, if they are the same (ie. not updated) then the check will fail.

Review

@bx80 bx80 added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review labels Jul 6, 2023
@bx80 bx80 self-assigned this Jul 6, 2023
@bx80 bx80 added Needs Review PRs that need a code review and removed Needs Review PRs that need a code review labels Jul 6, 2023
@bx80 bx80 mentioned this pull request Jul 6, 2023
11 tasks
.github/workflows/update-font.yml Outdated Show resolved Hide resolved
.github/workflows/update-font.yml Outdated Show resolved Hide resolved
@sgiehl sgiehl added this to the 5.0.0 milestone Jul 7, 2023
@sgiehl sgiehl force-pushed the github-action-font-check branch 9 times, most recently from f9cad92 to 529b5fa Compare July 10, 2023 10:06
@sgiehl
Copy link
Member

sgiehl commented Jul 10, 2023

I've slightly updated the action, so the error will be shown as inline annotation:

image

@sgiehl sgiehl merged commit 6a328d7 into 5.x-dev Jul 10, 2023
@sgiehl sgiehl deleted the github-action-font-check branch July 10, 2023 10:09
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a github action to check that the font cachebuster was updated
3 participants