]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/.github/workflows/main.yml
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / .github / workflows / main.yml
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
13 concurrency:
14   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15   cancel-in-progress: true
16
17 permissions:
18   contents: read # to fetch code (actions/checkout)
19
20 jobs:
21   tests:
22     name: Run tests
23     runs-on: ${{ matrix.os }}
24     if: github.repository == 'ohmyzsh/ohmyzsh'
25     strategy:
26       matrix:
27         os: [ubuntu-latest, macos-latest]
28     steps:
29       - name: Set up git repository
30         uses: actions/checkout@v2
31       - name: Install zsh
32         if: runner.os == 'Linux'
33         run: sudo apt-get update; sudo apt-get install zsh
34       - name: Test installer
35         run: sh ./tools/install.sh
36       - name: Check syntax
37         run: |
38           for file in ./oh-my-zsh.sh \
39                       ./lib/*.zsh \
40                       ./plugins/*/*.plugin.zsh \
41                       ./plugins/*/_* \
42                       ./themes/*.zsh-theme; do
43             zsh -n "$file" || return 1
44           done