Merge pull request #9 from zdharma-continuum/ci

This commit is contained in:
Aaron Lichtman 2021-11-13 10:44:42 -06:00 committed by GitHub
commit db6d265db0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 13 deletions

30
.github/workflows/zunit.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: zunit
on: [push, pull_request]
jobs:
zunit:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt install -y zsh
mkdir bin
curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > bin/revolver
curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > bin/color
git clone https://github.com/zunit-zsh/zunit.git zunit.git
cd zunit.git
./build.zsh
cd ..
mv ./zunit.git/zunit bin
chmod u+x bin/{color,revolver,zunit}
- name: Unit tests
run: |
export PATH="$PWD/bin:$PATH"
zunit

View file

@ -1,13 +0,0 @@
addons:
apt:
packages:
zsh
install:
- mkdir .bin
- curl -L https://github.com/zunit-zsh/zunit/releases/download/v0.8.2/zunit > .bin/zunit
- curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > .bin/revolver
- curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > .bin/color
before_script:
- chmod u+x .bin/{color,revolver,zunit}
- export PATH="$PWD/.bin:$PATH"
script: zunit