Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Add a workflow to validate the generated assets on CI. #233

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

Lukas-Stuehrk
Copy link
Member

It's rather easy to accidentally commit the wrong version of the generated CSS assets. Or to not commit the generated version and only the changed source. And it's not easy to validate if the generated CSS of a pull request correlates to the sources of the pull request.

This change introduces a new pipeline for CI. This pipeline builds the CSS from the sources and validates that the committed version of the generated CSS is identical to building it from source.

Copy link
Contributor

@mattt mattt left a comment

Choose a reason for hiding this comment

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

This is a great addition to our CI workflow. Thanks for taking the time to implement this, @Lukas-Stuehrk.

I added a step to cache NPM dependencies, which appears to be working as expected. Please give that a quick look and then feel free to merge.

@Lukas-Stuehrk Lukas-Stuehrk merged commit c3d2faa into SwiftDocOrg:master Mar 29, 2021
@Lukas-Stuehrk Lukas-Stuehrk deleted the ValidateAssets branch March 29, 2021 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants