mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-08-08 23:13:19 +02:00
997ea63a3b
- Remove manual workflow dispatch from the CI entrypoint.\n- Limit CI pull request events to the master branch.
40 lines
738 B
YAML
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]
|