Files
k3s-ansible/.github/workflows/ci.yml
T
Timothy Stewart 997ea63a3b ci(workflows): run CI only for master pull requests
- Remove manual workflow dispatch from the CI entrypoint.\n- Limit CI pull request events to the master branch.
2026-08-01 19:13:48 -05:00

40 lines
738 B
YAML

---
name: "CI"
on:
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- '**/.gitignore'
- '**/FUNDING.yml'
- '**/host.ini'
- '**/*.md'
- '**/.editorconfig'
- '**/ansible.example.cfg'
- '**/deploy.sh'
- '**/LICENSE'
- '**/reboot.sh'
- '**/reset.sh'
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
pre:
uses: ./.github/workflows/cache.yml
needs: [lint]
lint:
uses: ./.github/workflows/lint.yml
test:
uses: ./.github/workflows/test.yml
needs: [pre, lint]