zunit.yaml 878 B

12345678910111213141516171819202122232425262728293031
  1. name: zunit
  2. on: [push, pull_request]
  3. jobs:
  4. zunit:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Check out repository code
  8. uses: actions/checkout@v2
  9. - name: Install dependencies
  10. run: |
  11. sudo apt install -y zsh
  12. mkdir bin
  13. curl -fsSL https://raw.githubusercontent.com/molovo/revolver/v0.2.4/revolver > bin/revolver
  14. curl -fsSL https://raw.githubusercontent.com/molovo/color/d8f91ab5fcfceb623ae45d3333ad0e543775549c/color.zsh > bin/color
  15. git clone https://github.com/zunit-zsh/zunit.git zunit.git
  16. cd zunit.git
  17. git checkout b86c006f62db138a119e9be3a4b41e28876889b2
  18. ./build.zsh
  19. cd ..
  20. mv ./zunit.git/zunit bin
  21. chmod u+x bin/{color,revolver,zunit}
  22. - name: Unit tests
  23. run: |
  24. export PATH="$PWD/bin:$PATH"
  25. zunit