Skip to content

Commit 1cb5f98

Browse files
committed
add test print
add 'test' output Signed-off-by: Inho Oh <[email protected]>
1 parent d0971c4 commit 1cb5f98

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ jobs:
55
name: checkpatch review
66
runs-on: ubuntu-latest
77
steps:
8+
- name: 'Calculate PR commits + 1'
9+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
810
- uses: actions/checkout@v3
911
with:
1012
ref: ${{ github.event.pull_request.head.sha }}
13+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
1114
- name: Info
1215
run: |
1316
echo "Repository: $GITHUB_REPOSITORY"
1417
echo "Workspace: $GITHUB_WORKSPACE"
1518
pwd
1619
ls -la `pwd`
20+
git log --oneline --graph
1721
- name: Run checkpatch review
1822
uses: webispy/checkpatch-action@master
1923
env:

hello.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ int main(int argc, char *argv[])
44
{
55
printf("hello world\n");
66

7+
printf("test\n");
8+
79
return 0;
810
}

0 commit comments

Comments
 (0)