mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-01 12:50:30 +08:00
seems good
This commit is contained in:
parent
ed87664e41
commit
783b84fbc4
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
@ -30,36 +30,6 @@ jobs:
|
|||||||
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
|
|
@ -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
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user