2022-08-27 01:42:15 +08:00
|
|
|
name: test
|
|
|
|
on:
|
|
|
|
push: ~
|
|
|
|
workflow_dispatch: ~
|
|
|
|
jobs:
|
2022-08-28 20:51:44 +08:00
|
|
|
test-ubuntu:
|
|
|
|
name: test on ubuntu
|
2022-08-27 01:42:15 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repo
|
2024-04-29 21:29:03 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-08-28 21:07:10 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-08-27 01:42:15 +08:00
|
|
|
|
|
|
|
- name: install dfs
|
|
|
|
run: |
|
|
|
|
rev=`git rev-parse HEAD`
|
|
|
|
pwd
|
2022-12-03 20:37:20 +08:00
|
|
|
set -x
|
2023-01-06 16:14:41 +08:00
|
|
|
DFS_NO_WALL=0 ./install.sh -adl
|
2022-08-28 20:51:44 +08:00
|
|
|
test `git rev-parse HEAD` = "$rev"
|
2022-08-27 01:42:15 +08:00
|
|
|
|
|
|
|
- name: antigen build
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
echo $SHELL
|
2022-08-28 20:51:44 +08:00
|
|
|
antigen list
|
|
|
|
|
2022-11-05 19:45:21 +08:00
|
|
|
- name: run tests and reset
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
source tools/test.zsh
|
|
|
|
antigen reset
|
2023-01-06 16:14:41 +08:00
|
|
|
rm -rf $ANTIGEN $HOME/.antigen $HOME/.config/dotfiles
|
2022-12-03 20:37:20 +08:00
|
|
|
./install.sh -dl
|
2022-11-05 19:45:21 +08:00
|
|
|
|
|
|
|
- name: antigen build with DFS_NO_WALL
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
echo $SHELL
|
|
|
|
antigen list
|
|
|
|
|
2022-08-28 20:51:44 +08:00
|
|
|
- name: run tests
|
2022-08-27 01:42:15 +08:00
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
2022-08-28 20:51:44 +08:00
|
|
|
run: source tools/test.zsh
|
|
|
|
|
|
|
|
test-macos:
|
|
|
|
name: test on macos
|
|
|
|
runs-on: macos-12
|
|
|
|
steps:
|
|
|
|
- name: checkout repo
|
2024-04-29 21:29:03 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-08-28 21:07:10 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-08-28 20:51:44 +08:00
|
|
|
|
|
|
|
- name: install dfs
|
2022-08-27 01:42:15 +08:00
|
|
|
run: |
|
2022-08-28 20:51:44 +08:00
|
|
|
rev=`git rev-parse HEAD`
|
2022-08-27 01:42:15 +08:00
|
|
|
pwd
|
2022-12-03 20:37:20 +08:00
|
|
|
set -x
|
2023-01-06 16:14:41 +08:00
|
|
|
DFS_NO_WALL=0 ./install.sh -adl
|
2022-08-28 20:51:44 +08:00
|
|
|
test `git rev-parse HEAD` = "$rev"
|
2022-08-27 01:42:15 +08:00
|
|
|
|
2022-08-28 20:51:44 +08:00
|
|
|
- name: antigen build
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
2022-08-27 01:42:15 +08:00
|
|
|
run: |
|
2022-08-28 20:51:44 +08:00
|
|
|
echo $SHELL
|
|
|
|
antigen list
|
2022-08-27 01:42:15 +08:00
|
|
|
|
2022-11-05 19:45:21 +08:00
|
|
|
- name: run tests and reset
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
source tools/test.zsh
|
|
|
|
antigen reset
|
2023-01-06 16:14:41 +08:00
|
|
|
rm -rf $ANTIGEN $HOME/.antigen $HOME/.config/dotfiles
|
2022-12-03 20:37:20 +08:00
|
|
|
./install.sh -dl
|
2022-11-05 19:45:21 +08:00
|
|
|
|
|
|
|
- name: antigen build with DFS_NO_WALL
|
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
echo $SHELL
|
|
|
|
antigen list
|
|
|
|
|
2022-08-28 20:51:44 +08:00
|
|
|
- name: run tests
|
2022-08-27 01:42:15 +08:00
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
2022-11-08 22:58:17 +08:00
|
|
|
run: source tools/test.zsh
|
|
|
|
|
|
|
|
test-autodep:
|
|
|
|
name: test of auto-install dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: remove dependencies
|
|
|
|
run: |
|
2022-12-03 20:37:20 +08:00
|
|
|
sudo apt-get -y remove curl vim python3
|
2022-11-08 22:58:17 +08:00
|
|
|
|
|
|
|
- name: checkout repo
|
2024-04-29 21:29:03 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-11-08 22:58:17 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: install dfs
|
|
|
|
run: |
|
|
|
|
rev=`git rev-parse HEAD`
|
2022-12-03 20:37:20 +08:00
|
|
|
set -x
|
2022-11-11 10:36:50 +08:00
|
|
|
./install.sh -dal
|
2022-11-08 22:58:17 +08:00
|
|
|
test `git rev-parse HEAD` = "$rev"
|
|
|
|
|
2023-01-06 16:14:41 +08:00
|
|
|
- name: antigen build
|
2022-11-08 22:58:17 +08:00
|
|
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
|
|
|
run: |
|
|
|
|
echo $SHELL
|
|
|
|
antigen list
|
2023-01-06 16:14:41 +08:00
|
|
|
|
|
|
|
test-get-dotfiles-cn:
|
|
|
|
name: test of get.dotfiles.cn script
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repo
|
2024-04-29 21:29:03 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-01-06 16:14:41 +08:00
|
|
|
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
|