main.yml 847 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: CI
  2. on:
  3. pull_request:
  4. types:
  5. - opened
  6. - synchronize
  7. branches:
  8. - master
  9. push:
  10. branches:
  11. - master
  12. jobs:
  13. tests:
  14. name: Run tests
  15. runs-on: ${{ matrix.os }}
  16. strategy:
  17. matrix:
  18. os: [ubuntu-latest, macos-latest]
  19. steps:
  20. - name: Set up git repository
  21. uses: actions/checkout@v2
  22. - name: Install zsh
  23. if: runner.os == 'Linux'
  24. run: sudo apt-get update; sudo apt-get install zsh
  25. - name: Test installer
  26. run: sh ./tools/install.sh
  27. - name: Check syntax
  28. run: |
  29. for file in ./oh-my-zsh.sh \
  30. ./lib/*.zsh \
  31. ./plugins/*/*.plugin.zsh \
  32. ./plugins/*/_* \
  33. ./themes/*.zsh-theme; do
  34. zsh -n "$file" || return 1
  35. done