Skip to content

Commit

Permalink
test base ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
mtarking committed Apr 11, 2024
1 parent 655cf07 commit 2a503e3
Showing 1 changed file with 4 additions and 41 deletions.
45 changes: 4 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,32 +96,13 @@ jobs:

tests:
name: Tests
# needs:
# - build
runs-on: ubuntu-latest
# strategy:
# matrix:
# # ansible: [2.10.17, 2.11.12, 2.12.10, 2.13.13, 2.14.15, 2.16.5]
# ansible: [2.16.5]
# python: ['3.10']
steps:
- uses: actions/checkout@v4

- name: mkdir for Example Repo
run: mkdir -p /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example

# - name: Checkout pwd
# run: pwd

# - name: Checkout dir
# run: ls -altnr

# - name: secret test
# run: echo ${{ secrets.NDFC_IP }}

# - name: var test
# run: echo ${{ vars.NDFC_IP_VAR }}

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -149,33 +130,15 @@ jobs:
- name: Install supporting collections
run: ansible-galaxy collection install -r ansible-dc-vxlan-example/requirements.yml

# - name: Checkout pwd
# run: pwd

# - name: Checkout dir
# run: ls -altnr

# - name: Checkout Example dir
# run: ls -altnr /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example

- name: Check Ansible Collection List
run: ansible-galaxy collection list

- name: Check my IP
run: curl ifconfig.me

# - name: Test Connection to NDFC
# env:
# NDFC_HOST: ${{ secrets.NDFC_HOST }}
# run: curl --insecure -I https://"$NDFC_HOST"

- name: Run playbook
# env:
# NDFC_HOST_VAR: ${{ vars.NDFC_HOST_VAR }}
# NDFC_HOST: ${{ secrets.NDFC_HOST }}
# NDFC_USER: ${{ secrets.NDFC_USER }}
# NDFC_PASS: ${{ secrets.NDFC_PASS }}
env:
NDFC_HOST: ${{ secrets.NDFC_HOST }}
NDFC_USER: ${{ secrets.NDFC_USER }}
NDFC_PASS: ${{ secrets.NDFC_PASS }}
run: ansible-playbook -i ansible-dc-vxlan-example/inventory.yml ansible-dc-vxlan-example/vxlan.yml -vvv

# - name: Build a nac-dc-vxlan collection tarball
# run: ansible-galaxy collection build

0 comments on commit 2a503e3

Please sign in to comment.