Skip to content

with lint

with lint #25

Workflow file for this run

name: Run tests
on:
push:
branches: '**'
jobs:
tests:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.0.10"
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install Python dependencies
run: pip install --no-cache-dir --user ansible==9.5.1
- name: Setup OpenSSH Server
run: |
sudo apt update
sudo apt install --yes openssh-server=1:8.9p1-3ubuntu0.7
sudo service ssh start
- name: Initialize Terraform infrastructure
run: terraform init
working-directory: ./tests/setup
- name: Show VM metrics
run: cat /proc/cpuinfo && cat /proc/meminfo && df -h
- name: Apply Terraform infrastructure
run: terraform apply --auto-approve
working-directory: ./tests/setup
- name: Run testsuite
run: ansible-playbook --inventory inventory.yml deploy.yml
working-directory: ./tests/testsuite
- name: Cleanup
if: always()
run: terraform destroy --auto-approve
working-directory: ./tests/setup