mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
Merge 21f33c476c into e9fc134236
This commit is contained in:
commit
cb0dc28f4a
5 changed files with 526 additions and 0 deletions
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
|
|
@ -41,3 +41,31 @@ jobs:
|
|||
./themes/*.zsh-theme; do
|
||||
zsh -n "$file" || return 1
|
||||
done
|
||||
|
||||
collisions:
|
||||
name: Check alias collisions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up git repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r .github/workflows/alias_collision/requirements.txt
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd .github/workflows/alias_collision/
|
||||
python -m pytest
|
||||
- name: Checkout target branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ohmyzsh-target-branch
|
||||
ref: master
|
||||
- name: Check for alias collisions on target branch
|
||||
run: python .github/workflows/alias_collision/check_alias_collision.py ohmyzsh-target-branch/plugins --known-collisions-output-path known_alias_collisions.json
|
||||
- name: Compare known collisions to new collisions on source branch
|
||||
run: python .github/workflows/alias_collision/check_alias_collision.py plugins --known-collisions known_alias_collisions.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue