Unit tests via GH Actions

This commit is contained in:
Philipp Schmitt 2021-11-12 23:07:04 +01:00
parent f4d007e4da
commit 41fe53aa00
No known key found for this signature in database
GPG key ID: DC439C47EACB17F9

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