-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add snphost CI PR test #91
base: main
Are you sure you want to change the base?
Conversation
Looks like you have a linting error @LakshmiSaiHarika |
198fe39
to
9dd8737
Compare
Hi Reviewers, I edited this PR to add manual PR event and did some code cleanup. Please review this and let me know if any additional changes are required. |
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uses: actions/checkout@v3
|
||
- name: Run snphost cargo test on the host | ||
run: | | ||
# Check and install dependencies on the host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set -e # exit immediately on error and fail fast
|
||
# Cleanup steps on the host | ||
rm -rf ~/snphost | ||
cd ~/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mkdir -p ~/snphost
cd ~
|
||
if [ ${{ github.event_name }} == "pull_request_target" ]; then | ||
event_pr_number=${{ github.event.pull_request.number }} | ||
event_pr_branch=${{ github.head_ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.head_ref -> github.event.pull_request.head.ref
e62617b
to
25632fc
Compare
Contains all the required function definitions for its use in snphost CI PR workflow. Signed-off-by: Harika Nittala <[email protected]>
8683bfe
to
a7e1b29
Compare
Added snphost CI PR test workflow to perform snphost cargo tests on the self-hosted runner for a new PR, updated PR or after SNP kernel update on the self-hosted runner Signed-off-by: Harika Nittala <[email protected]>
488f122
to
4bf770b
Compare
I addressed the above comments.... Please let me know if any changes are required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @LakshmiSaiHarika
Performs snphost cargo tests on the self-hosted runner