ci: better structure (#13)

* struct ci; staged

* seems good

* ci try macos

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug
This commit is contained in:
2022-08-28 20:51:44 +08:00
committed by GitHub
parent fa737d482f
commit 18dfca5f39
4 changed files with 74 additions and 40 deletions

27
tools/test.zsh Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/false "This script should be sourced in a shell, not executed directly"
set -ex
# check files
cd /
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
# check alias
alias p114 > /dev/null
# check update
dfs update
dfs version
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`