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

Adds new action to build woff2 font file #20081

Merged
merged 1 commit into from Dec 12, 2022
Merged

Adds new action to build woff2 font file #20081

merged 1 commit into from Dec 12, 2022

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Dec 6, 2022

Description:

We previously were running a test (on travis) to check if the woff2 file is still up to date.

It should be faster and smarter to run a github action instead that works similar as the vue build action.
So instead of having to install woff2 for running tests, the github action will now only try to check and update the woff2 file if the ttf font file had been updated in a PR.

@justinvelluppillai putting this into a 4.13 milestone as it should be fine to merge to 4.x-dev as it doesn't contain any relevant code changes that might affect Matomo, but will avoid some additional code requirements for the new github test action.

Review

@sgiehl sgiehl 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 Dec 6, 2022
@sgiehl sgiehl added this to the 4.13.2 milestone Dec 6, 2022
@justinvelluppillai justinvelluppillai modified the milestones: 4.13.2, 4.13.1 Dec 8, 2022
@sgiehl sgiehl requested a review from bx80 December 8, 2022 07:47
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the deprecation warning, I can't see any issues with this 👍

Comment on lines +44 to +46
echo ::set-output name=islocalbranch::$BASE == $GITHUB_REPOSITORY
echo ::set-output name=branch::$REF
echo ::set-output name=base::$BASE_SHA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The detailed action log is showing a deprecation warning for the set-output command:

Warning: The `set-output` command is deprecated 
and will be disabled soon. Please upgrade to using 
Environment Files. 

For more information see:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

set-output will fail after June 1st 2023, it looks straight forward to update to the new syntax, so maybe it would be good to do that now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I know. But I didn't have time to check what exactly would need to be changed for that.
We will need to update that for all our actions, so will merge this as it is for now and we can adjust all our actions then at once for the new syntax. I'll create an issue for that.

@bx80 bx80 removed the Needs Review PRs that need a code review label Dec 11, 2022
@sgiehl sgiehl merged commit 133ee5c into 4.x-dev Dec 12, 2022
@sgiehl sgiehl deleted the woff2action branch December 12, 2022 09:32
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jan 12, 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. 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.

None yet

3 participants