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

chore(*): add a CI pipeline to check pull requests #3

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

caohe
Copy link
Member

@caohe caohe commented Mar 14, 2023

What type of PR is this?

Chore

What this PR does / why we need it:

The original pipeline is used for building and pushing images during the release process. Therefore, we have added a new CI pipeline to check pull requests, which includes linting, building, and unit testing.

Which issue(s) this PR fixes:

Special notes for your reviewer:

@caohe caohe added the chore label Mar 14, 2023
@caohe caohe added this to the v0.1 milestone Mar 14, 2023
@caohe caohe force-pushed the add-ci-pipeline branch from 263189d to b003048 Compare March 14, 2023 06:18
@@ -9,7 +9,6 @@ on:
push:
branches: [ 'master', 'main', 'release-*' ]
# Publish semver tags as releases.
pull_request: {}
Copy link
Member

Choose a reason for hiding this comment

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

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 think these lines are no longer necessary, and I have modified them.

@caohe caohe force-pushed the add-ci-pipeline branch from b003048 to bd443fe Compare March 14, 2023 06:53
jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
Copy link
Member

Choose a reason for hiding this comment

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

seems ubuntu-18.04 will be deprecated soon actions/runner-images#6002
use ubuntu-latest instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

"ubuntu-latest" refers to version 22.04, in which cgroup v2 is enabled by default and causes some unit tests to fail. Therefore, I switched the system version to the older 18.04. However, I also tried version 20.04 and it worked as well, which I consider to be a viable option.

Signed-off-by: caohe <caohe9603@gmail.com>
@caohe caohe force-pushed the add-ci-pipeline branch from bd443fe to 8aa2ea5 Compare March 14, 2023 07:23
@pendoragon pendoragon merged commit 3ec6792 into kubewharf:main Mar 14, 2023
@caohe caohe deleted the add-ci-pipeline branch March 14, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants