forked from tim/k3s-ansible
35939315cd
- Restore workflow dispatch for manual validation on master.\n- Keep automatic CI limited to pull requests targeting master.
41 lines
759 B
YAML
41 lines
759 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'
|
|
workflow_dispatch:
|
|
|
|
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]
|