mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-10-23 05:08:16 +08:00
install.sh: autodep, improve note (#22)
* install.sh: --auto * ci: test --auto * ci: remove dep when test --auto * debug * ok. improve the install notes
This commit is contained in:
42
.github/workflows/test.yml
vendored
42
.github/workflows/test.yml
vendored
@@ -9,8 +9,8 @@ jobs:
|
||||
steps:
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y git python3 python3-pip zsh curl inetutils-ping
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y git python3 python3-pip zsh curl inetutils-ping
|
||||
sudo pip3 install requests
|
||||
|
||||
- name: checkout repo
|
||||
@@ -22,8 +22,8 @@ jobs:
|
||||
run: |
|
||||
rev=`git rev-parse HEAD`
|
||||
pwd
|
||||
export DFS_NO_COMPILE=1 DFS_DEV=1
|
||||
./install.sh
|
||||
export DFS_NO_COMPILE=1
|
||||
./install.sh -d
|
||||
test `git rev-parse HEAD` = "$rev"
|
||||
|
||||
- name: antigen build
|
||||
@@ -70,8 +70,8 @@ jobs:
|
||||
run: |
|
||||
rev=`git rev-parse HEAD`
|
||||
pwd
|
||||
export DFS_NO_COMPILE=1 DFS_DEV=1
|
||||
./install.sh
|
||||
export DFS_NO_COMPILE=1
|
||||
./install.sh -d
|
||||
test `git rev-parse HEAD` = "$rev"
|
||||
|
||||
- name: antigen build
|
||||
@@ -97,4 +97,32 @@ jobs:
|
||||
|
||||
- name: run tests
|
||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||
run: source tools/test.zsh
|
||||
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
|
||||
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: install dfs
|
||||
run: |
|
||||
rev=`git rev-parse HEAD`
|
||||
export DFS_NO_COMPILE=1
|
||||
./install.sh -d -a
|
||||
test `git rev-parse HEAD` = "$rev"
|
||||
|
||||
- name: antigen build with DFS_NO_WALL
|
||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||
env:
|
||||
DFS_NO_WALL: 1
|
||||
run: |
|
||||
echo $SHELL
|
||||
antigen list
|
||||
|
||||
Reference in New Issue
Block a user