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

ci: migrate to GitHub Actions #1647

Merged
merged 8 commits into from
May 2, 2021
Merged

ci: migrate to GitHub Actions #1647

merged 8 commits into from
May 2, 2021

Conversation

stevenjoezhang
Copy link
Member

@stevenjoezhang stevenjoezhang commented Apr 30, 2021

Switch to GitHub actions. Automated testing is more efficient than the manual review we currently use.

See also #837 #1458

} else {
themeNames.push(name);
themes.add(name);
Copy link
Member

Choose a reason for hiding this comment

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

Set will be deduped automatically, no need to wrap it in else. But it is fine.

@@ -6,51 +6,71 @@ const { join } = require('path');

const { listDir } = require('hexo-fs');
const { log } = hexo;
const sizeOf = require('image-size');
const sharp = require('sharp');
Copy link
Member

Choose a reason for hiding this comment

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

Sharp requires node-gyp to build. Better enable node_modules cache in the CI

Copy link
Member Author

Choose a reason for hiding this comment

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

Caching node_modules may cause the test to fail and is not recommended

sharp is also used in scripts/responsive.js, I believe this modification will not worsen the running time of the installation script

@stevenjoezhang
Copy link
Member Author

TODO: hexo.locals.get('data').themes is undefined when running hexo clean

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2021

Theme name validation passed.
Theme thumbnails validation completed.

@stevenjoezhang stevenjoezhang merged commit 6e29667 into master May 2, 2021
@stevenjoezhang stevenjoezhang deleted the ci branch May 2, 2021 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants