You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
924 B
YAML
37 lines
924 B
YAML
---
|
|
name: CI
|
|
on:
|
|
push:
|
|
|
|
env:
|
|
VAULT_PASSWORD: "${{ secrets.VAULT_PASSWORD }}"
|
|
|
|
jobs:
|
|
tests:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the codebase.
|
|
uses: actions/checkout@v3
|
|
- name: List ssh pub
|
|
run: |
|
|
ls ~/.ssh/*.pub
|
|
- name: Prepare Test Files
|
|
run: |
|
|
mv tests/.vault-pass.sh ./.vault-pass.sh
|
|
mv tests/ansible.cfg ./ansible.cfg
|
|
mv tests/hosts.ini ./hosts.ini
|
|
- name: Install test dependencies.
|
|
run: |
|
|
sudo python3 -m pip install --upgrade pip
|
|
sudo pip3 install ansible
|
|
- name: Syntax Check
|
|
run: |
|
|
ansible-playbook setup-linode.yml --syntax-check
|
|
ansible-playbook setup-homelab.yml --syntax-check
|
|
- name: Setup Linode Instance
|
|
run: |
|
|
ansible-playbook setup-linode.yml
|
|
env:
|
|
ANSIBLE_FORCE_COLOR: '1'
|