Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 98e6fc2

Browse files
committed
テストの追加
1 parent c772b86 commit 98e6fc2

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,25 @@ jobs:
7878
echo '::error:: Should not be able to be checked out, when ACT environment is exists'
7979
exit 1
8080
fi
81+
82+
- name: Test Write author to .git/config
83+
uses: ./
84+
with:
85+
depth: ''
86+
checkout_dir: step6
87+
88+
- name: Have user.name and user.email on .git/config?
89+
run: |
90+
set -xe
91+
pwd
92+
ls -al
93+
pushd step6
94+
if [ "${GITHUB_ACTOR}" != "$(git config --local --get user.name)" ]; then
95+
echo '::error:: "git config --local --get user.name" Should be equal' "$GITHUB_ACTOR"
96+
exit 1
97+
fi
98+
if [ "${GITHUB_ACTOR}@users.noreply.github.com" != "$(git config --local --get user.email)" ]; then
99+
echo '::error:: "git config --local --get user.email" Should be equal' "$GITHUB_ACTOR@users.noreply.github.com"
100+
exit 1
101+
fi
102+
popd

0 commit comments

Comments
 (0)