Update main.yml

This commit is contained in:
GR3YH4TT3R93 2023-09-20 20:43:01 -07:00
commit cc0fbaf900
No known key found for this signature in database

View file

@ -1,3 +1,4 @@
---
name: CI name: CI
on: on:
pull_request: pull_request:
@ -9,26 +10,23 @@ on:
push: push:
branches: branches:
- master - master
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
jobs: jobs:
tests: tests:
name: Run tests name: Run tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'ohmyzsh/ohmyzsh' if: github.repository == 'GR3YH4TT3R93/ohmyzsh'
steps: steps:
- name: Set up git repository - name: Set up git repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install zsh - name: Install zsh
run: sudo apt-get update; sudo apt-get install zsh run: sudo apt-get update; sudo apt-get install zsh
- name: Check syntax - name: Check syntax
run: | run: |-
for file in ./oh-my-zsh.sh \ for file in ./oh-my-zsh.sh \
./lib/*.zsh \ ./lib/*.zsh \
./plugins/*/*.plugin.zsh \ ./plugins/*/*.plugin.zsh \