mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 07:36:53 +08:00
ci try macos
This commit is contained in:
parent
783b84fbc4
commit
2125662d9a
35
.github/workflows/test.yml
vendored
35
.github/workflows/test.yml
vendored
|
@ -3,8 +3,8 @@ on:
|
|||
push: ~
|
||||
workflow_dispatch: ~
|
||||
jobs:
|
||||
test:
|
||||
name: test
|
||||
test-ubuntu:
|
||||
name: test on ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: install dependencies
|
||||
|
@ -30,6 +30,37 @@ jobs:
|
|||
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-latest
|
||||
steps:
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo brew update
|
||||
sudo brew install -y git python3 zsh curl
|
||||
sudo brew 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
|
Loading…
Reference in New Issue
Block a user