-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (49 loc) · 1.42 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: Pull Request Test
on:
push:
workflow_dispatch:
pull_request:
jobs:
install-requirements:
name: Test installation of the project requirements
runs-on: ubuntu-latest
strategy:
matrix:
python: [ 3.11 ]
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install python requirements
run: |
pip install -r requirements.txt
pip install -r molecule/requirements.txt
ansible-galaxy collection install -r collections/requirements.yml --upgrade
- name: Print configuration versions
run: |
pip freeze
ansible-galaxy collection list
# - name: Run role tests
# run: |
# molecule test --scenario-name github
kind-test:
name: Test Kind Deployment
runs-on: ubuntu-latest
strategy:
matrix:
kind_version: [v0.20.0]
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Deploy kind
run: |
curl -Lo ./kind/kind https://kind.sigs.k8s.io/dl/${{ matrix.kind_version }}/kind-linux-amd64
chmod 755 kind
./kind/registry.sh install --registry-name kind-registry.local
./kind/kind.sh install --registry-name kind-registry.local
...