Format Everything (via make format) and MISC Updates to GitHub Workfl… #345
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Integration Tests | |
on: | |
workflow_dispatch: null | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: .ansible/collections/ansible_collections/linode/cloud | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
with: | |
path: .ansible/collections/ansible_collections/linode/cloud | |
- name: update packages | |
run: sudo apt-get update -y | |
- name: install make | |
run: sudo apt-get install -y build-essential | |
- name: setup python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: install dependencies | |
run: make deps | |
- name: install ansible dependencies | |
run: ansible-galaxy collection install amazon.aws:==6.0.1 | |
- name: install collection | |
run: make install | |
- name: replace existing keys | |
run: rm -rf ~/.ansible/test && mkdir -p ~/.ansible/test && ssh-keygen -m PEM -q -t rsa -N '' -f ~/.ansible/test/id_rsa | |
- name: run tests | |
run: make testall | |
env: | |
LINODE_API_TOKEN: ${{ secrets.DX_LINODE_TOKEN }} | |