mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 09:47:00 +08:00
Dict Xiong
92aa5fa920
* riot: remove unknown domain warn * install.sh: --no-ssh -> --no-auth-info * doll: --restart=unless-stopped * zshrc: alias cps and mvs * riot: proxy -> ssh * zshrc: not alias rm to trash * (trial) riot devel: separate preset to config dir riot.d * riot: support extra options and extra -o options * (experimental) riot config in a single file * riot config: add nasp remote and null domain * gitconf: pull.ff = only * fix ci * riot: dynamic port forwarding * riot: only one domain func will be exec * to-install: update lemonbench * to-install: alist * [exp] riot inferred ssh: ping ping6 * sagt: fix nixos * riot config: domain 42 * ubuntu.sh: DEBIAN_FRONTEND=noninteractive * zshrc: ping -n * zshrc: alias ping -n * riot-config: jumpserver from sir0 to ssh.beardic.cn * zshrc: alias ping before checking os type * frigg: support api4.beardic.cn * fix(install.sh): crontab fails on a new server * fix(riot-conf): nasp.ob.ac.cn -> nasp.fit * fix(install.sh): install crontab (exp) * feat(test.zsh): test crontab * fix(riot): secure control master * fix(ci): riot control master * fix(riot): not mkdir if dry-run * feat(vimrc): set shiftwidth=4 * feat(ci): sync tmux-yank * feat(tmux): set-clipboard on and mouse on (experimental) * feat(zshrc): alias ping6 * build(ci): hub mirror 1.3->1.4 * fix(zshrc): tmux on msys; feat(common): better perf getting os type and linux dist * fix(common.sh): get_os_type and get_linux_dist * feat(zshrc): add plugin {magic-enter,per-directory-history,pip,podman,python,rsync,systemd,timer} * feat(zshrc): journalctl alias * feat(vimrc): tab=2 for c,cpp,nix,yaml * build(ci): checkout v3 -> v4 --------- Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
131 lines
3.1 KiB
YAML
131 lines
3.1 KiB
YAML
name: test
|
|
on:
|
|
push: ~
|
|
workflow_dispatch: ~
|
|
jobs:
|
|
test-ubuntu:
|
|
name: test on ubuntu
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: install dfs
|
|
run: |
|
|
rev=`git rev-parse HEAD`
|
|
pwd
|
|
set -x
|
|
DFS_NO_WALL=0 ./install.sh -adl
|
|
test `git rev-parse HEAD` = "$rev"
|
|
|
|
- name: antigen build
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
echo $SHELL
|
|
antigen list
|
|
|
|
- name: run tests and reset
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
source tools/test.zsh
|
|
antigen reset
|
|
rm -rf $ANTIGEN $HOME/.antigen $HOME/.config/dotfiles
|
|
./install.sh -dl
|
|
|
|
- name: antigen build with DFS_NO_WALL
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
echo $SHELL
|
|
antigen list
|
|
|
|
- name: run tests
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: source tools/test.zsh
|
|
|
|
test-macos:
|
|
name: test on macos
|
|
runs-on: macos-12
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: install dfs
|
|
run: |
|
|
rev=`git rev-parse HEAD`
|
|
pwd
|
|
set -x
|
|
DFS_NO_WALL=0 ./install.sh -adl
|
|
test `git rev-parse HEAD` = "$rev"
|
|
|
|
- name: antigen build
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
echo $SHELL
|
|
antigen list
|
|
|
|
- name: run tests and reset
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
source tools/test.zsh
|
|
antigen reset
|
|
rm -rf $ANTIGEN $HOME/.antigen $HOME/.config/dotfiles
|
|
./install.sh -dl
|
|
|
|
- name: antigen build with DFS_NO_WALL
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
echo $SHELL
|
|
antigen list
|
|
|
|
- name: run tests
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: source tools/test.zsh
|
|
|
|
test-autodep:
|
|
name: test of auto-install dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: remove dependencies
|
|
run: |
|
|
sudo apt-get -y remove curl vim python3
|
|
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: install dfs
|
|
run: |
|
|
rev=`git rev-parse HEAD`
|
|
set -x
|
|
./install.sh -dal
|
|
test `git rev-parse HEAD` = "$rev"
|
|
|
|
- name: antigen build
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
echo $SHELL
|
|
antigen list
|
|
|
|
test-get-dotfiles-cn:
|
|
name: test of get.dotfiles.cn script
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: run the script
|
|
run: |
|
|
repo=https://github.com/DictXiong/dotfiles bash tools/get.dotfiles.cn -asl
|
|
|
|
- name: run tests
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
run: |
|
|
dfs cd
|
|
source tools/test.zsh |