ci try macos

This commit is contained in:
Dict Xiong 2022-08-28 14:17:28 +08:00
parent 783b84fbc4
commit 2125662d9a

View File

@ -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