seems good

This commit is contained in:
Dict Xiong 2022-08-28 12:03:34 +08:00
parent ed87664e41
commit 783b84fbc4
2 changed files with 14 additions and 40 deletions

View File

@ -28,38 +28,8 @@ jobs:
shell: /bin/zsh -ileo PIPE_FAIL {0} shell: /bin/zsh -ileo PIPE_FAIL {0}
run: | run: |
echo $SHELL echo $SHELL
antigen list antigen list
- name: check files - name: run tests
shell: /bin/zsh -ileo PIPE_FAIL {0} shell: /bin/zsh -ileo PIPE_FAIL {0}
run: | run: source tools/test.zsh
l ~
l ~/.ssh
cat ~/.zshrc
- name: check scripts and alias
shell: /bin/zsh -ileo PIPE_FAIL {0}
run: |
cd /
dfs
dfs cd
pwd
dfs version
dfs log 1
l
dogo
tools/common.sh get_os_type
tools/common.sh get_linux_dist
bash -x tools/common.sh post_log 1 2 3
- name: check scripts and alias (no ret check)
shell: /bin/zsh -il {0}
run: |
p114 -c 4
return 0
- name: check update
shell: /bin/zsh -ileo PIPE_FAIL {0}
run: |
dfs update
dfs version

View File

@ -1,24 +1,28 @@
#!/bin/false "This script should be sourced in a shell, not executed directly"
set -ex set -ex
l ~ # check files
l ~/.ssh
cat ~/.zshrc
cd / cd /
dfs
dfs cd dfs cd
pwd pwd
test -f .zshrc2
diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2
grep -q ".zshrc2" ~/.zshrc
# check scripts and functions
dfs version dfs version
dfs log 1 dfs log 1
l l
dogo dogo
tools/common.sh get_os_type tools/common.sh get_os_type
tools/common.sh get_linux_dist tools/common.sh get_linux_dist
bash -x tools/common.sh post_log 1 2 3
# check alias
alias p114 > /dev/null
# check update
dfs update dfs update
dfs version dfs version
# ..?
p114 -c 4