feat: bootstrap MicroK8s cluster on Raspberry Pi #3
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install ansible ansible-lint yamllint | |
| - name: Install Ansible collections | |
| run: ansible-galaxy collection install -r requirements.yml | |
| - name: YAML lint | |
| run: yamllint -s . | |
| - name: Ansible lint | |
| run: ansible-lint playbooks/bootstrap.yml | |
| - name: Syntax check | |
| run: ansible-playbook playbooks/bootstrap.yml --syntax-check | |
| integration: | |
| name: Integration tests | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install ansible molecule molecule-plugins[docker] docker | |
| - name: Install Ansible collections | |
| run: ansible-galaxy collection install -r requirements.yml | |
| - name: Run Molecule tests | |
| run: molecule test |