Skip to content

ci: reduce the running of ci#5291

Merged
yoshinorin merged 1 commit intohexojs:masterfrom
uiolee:ci
Oct 9, 2023
Merged

ci: reduce the running of ci#5291
yoshinorin merged 1 commit intohexojs:masterfrom
uiolee:ci

Conversation

@uiolee
Copy link
Member

@uiolee uiolee commented Sep 12, 2023

I guess it's not always necessary to run ci.

  1. linter and tester only need to be executed when the code or environment changes
  2. dependabot causes ci to run twice
    dependabot

What does it do?

  1. add paths filter. only run ci when the code changes.
  2. add branches filter. only run ci in specified branches.

@github-actions
Copy link

How to test

git clone -b ci https://github.com/uiolee/hexo.git
cd hexo
npm install
npm test

@D-Sketon
Copy link
Member

Did #5153 cause the test to fail?

@yoshinorin yoshinorin merged commit ad05652 into hexojs:master Oct 9, 2023
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.

4 participants