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
36
.github/workflows/test.yml
vendored
36
.github/workflows/test.yml
vendored
@ -28,38 +28,8 @@ jobs:
|
||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||
run: |
|
||||
echo $SHELL
|
||||
antigen list
|
||||
antigen list
|
||||
|
||||
- name: check files
|
||||
- name: run tests
|
||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||
run: |
|
||||
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
|
||||
run: source tools/test.zsh
|
@ -1,24 +1,28 @@
|
||||
#!/bin/false "This script should be sourced in a shell, not executed directly"
|
||||
|
||||
set -ex
|
||||
|
||||
l ~
|
||||
l ~/.ssh
|
||||
cat ~/.zshrc
|
||||
# check files
|
||||
cd /
|
||||
dfs
|
||||
dfs cd
|
||||
pwd
|
||||
test -f .zshrc2
|
||||
diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2
|
||||
grep -q ".zshrc2" ~/.zshrc
|
||||
|
||||
# check scripts and functions
|
||||
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
|
||||
|
||||
# check alias
|
||||
alias p114 > /dev/null
|
||||
|
||||
# check update
|
||||
dfs update
|
||||
dfs version
|
||||
|
||||
# ..?
|
||||
p114 -c 4
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user