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

Commit 9152f4d

Browse files
committed
テスト時のcheckout directory nameを意味ある名前にした
1 parent a384f61 commit 9152f4d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- name: Test default checkout
2323
uses: ./
2424
with:
25-
checkout_dir: step1
25+
checkout_dir: step.default
2626

2727
- name: Directory exists
2828
run: |
29-
if [ ! -d ./step1 ]; then
29+
if [ ! -d ./step.default ]; then
3030
echo '::error:: Should be able to be checked out'
3131
exit 1
3232
fi
@@ -35,11 +35,11 @@ jobs:
3535
uses: ./
3636
with:
3737
branch_name: main
38-
checkout_dir: step2
38+
checkout_dir: step.branch_name
3939

4040
- name: Directory exists
4141
run: |
42-
if [ ! -d ./step2 ]; then
42+
if [ ! -d ./step.branch_name ]; then
4343
echo '::error:: Should be able to be checked out'
4444
exit 1
4545
fi
@@ -48,11 +48,11 @@ jobs:
4848
uses: ./
4949
with:
5050
branch_name: refs/heads/main
51-
checkout_dir: step3
51+
checkout_dir: step.long_branch_name
5252

5353
- name: Directory exists
5454
run: |
55-
if [ ! -d ./step3 ]; then
55+
if [ ! -d ./step.long_branch_name ]; then
5656
echo '::error:: Should be able to be checked out'
5757
exit 1
5858
fi
@@ -61,11 +61,11 @@ jobs:
6161
uses: ./
6262
with:
6363
depth: ''
64-
checkout_dir: step4
64+
checkout_dir: step.no_depth_option
6565

6666
- name: Directory exists
6767
run: |
68-
if [ ! -d ./step4 ]; then
68+
if [ ! -d ./step.no_depth_option ]; then
6969
echo '::error:: Should be able to be checked out'
7070
exit 1
7171
fi
@@ -76,11 +76,11 @@ jobs:
7676
ACT: 1
7777
with:
7878
depth: ''
79-
checkout_dir: step5
79+
checkout_dir: step.act_presented
8080

8181
- name: Directory does not exist
8282
run: |
83-
if [ -d ./step5 ]; then
83+
if [ -d ./step.act_presented ]; then
8484
echo '::error:: Should not be able to be checked out, when ACT environment is exists'
8585
exit 1
8686
fi
@@ -89,14 +89,14 @@ jobs:
8989
uses: ./
9090
with:
9191
depth: ''
92-
checkout_dir: step6
92+
checkout_dir: step.authoer
9393

9494
- name: Have user.name and user.email on .git/config?
9595
run: |
9696
set -xe
9797
pwd
9898
ls -al
99-
pushd step6
99+
pushd step.authoer
100100
if [ "${GITHUB_ACTOR}" != "$(git config --local --get user.name)" ]; then
101101
echo '::error:: "git config --local --get user.name" Should be equal' "$GITHUB_ACTOR"
102102
exit 1

0 commit comments

Comments
 (0)