Skip to content

Merge branch 'linode:dev' into dev #17

Merge branch 'linode:dev' into dev

Merge branch 'linode:dev' into dev #17

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: pip3 install -r requirements-dev.txt -r requirements.txt
- 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 }}