File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Copilot Setup Steps"
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - .github/workflows/copilot-setup-steps.yml
8+ pull_request :
9+ paths :
10+ - .github/workflows/copilot-setup-steps.yml
11+
12+ jobs :
13+ # Job name MUST be exactly this for Copilot to pick it up
14+ copilot-setup-steps :
15+ runs-on : ubuntu-latest
16+
17+ # Run all steps inside a Fedora 43 container
18+ container :
19+ image : fedora:43
20+
21+ permissions :
22+ contents : read
23+
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v5
27+
28+ - name : Install Ansible toolchain via dnf
29+ run : |
30+ dnf -y update
31+ dnf -y install \
32+ ansible \
33+ ansible-lint \
34+ yamllint \
35+ python3-pip \
36+ git \
37+ sshpass \
38+ jq
39+
40+ - name : Upgrade pip and install Python test tooling
41+ run : |
42+ python3 -m pip install --upgrade pip
43+ # Add whatever you actually use for tests; these are safe defaults
44+ python3 -m pip install \
45+ pytest \
46+ pytest-ansible
47+
48+ - name : Install Ansible Galaxy collections
49+ run : |
50+ ansible-galaxy collection install -r ansible/requirements.yml
51+
52+ - name : Verify Ansible setup
53+ run : |
54+ ansible --version
55+ ansible-lint --version
56+ yamllint --version
You can’t perform that action at this time.
0 commit comments