diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ecee01c..27c2452 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file