Files
oh-my-zsh/.github/workflows/main.yml
T
Robby RussellandClaude Fable 5.2 7809dfb390 ci: lock workflow action dependencies
Add .github/workflows/actions.lock, generated by gh actions-lock. It
records the commit for every action the workflows use, including
actions called by other actions. Workflows now reference release
tags and the lockfile holds the commit that runs.

Verify the lockfile in the Workflow lint job so a workflow change
that skips regenerating it fails the pull request.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 14:00:38 -08:00

45 lines
1.1 KiB
YAML

name: CI
on:
pull_request:
types:
- opened
- synchronize
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.repository == 'ohmyzsh/ohmyzsh'
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@v2.23.0
with:
egress-policy: audit
- name: Set up git repository
uses: actions/checkout@v7.0.1
- name: Install zsh
run: sudo apt-get update; sudo apt-get install zsh
- name: Check syntax
run: |
for file in ./oh-my-zsh.sh \
./lib/*.zsh \
./plugins/*/*.plugin.zsh \
./plugins/*/_* \
./themes/*.zsh-theme; do
zsh -n "$file" || return 1
done