Skip to content

Commit 98c2f61

Browse files
author
sfroeber
committed
Adding copilot work flow
1 parent c990ec7 commit 98c2f61

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

0 commit comments

Comments
 (0)