mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 00:36:51 +08:00
35 lines
804 B
YAML
35 lines
804 B
YAML
name: test
|
|
on:
|
|
push: ~
|
|
workflow_dispatch: ~
|
|
jobs:
|
|
test:
|
|
name: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y git python3 python3-pip zsh curl inetutils-ping
|
|
sudo apt remove -y vim tmux
|
|
sudo pip3 install requests
|
|
|
|
- name: checkout repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: install dfs
|
|
run: |
|
|
rev=`git rev-parse HEAD`
|
|
pwd
|
|
./install.sh
|
|
git checkout $rev
|
|
|
|
- name: antigen build
|
|
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 |