Work manages slack, too. #62
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: CI | |
'on': | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
- name: Install test dependencies. | |
run: pip3 install ansible ansible-lint | |
- name: Lint ansible. | |
run: ansible-lint | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-software | |
install: | |
name: Playbook | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
playbook: | |
- deekayen-macbook | |
- dnorman-macbook | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
- name: Install ansible. | |
run: brew install ansible | |
- name: Install galaxy dependencies. | |
run: ansible-galaxy install -r roles/requirements.yml | |
- name: Check syntax. | |
run: ansible-playbook --syntax-check --list-tasks -i 127.0.0.1, ${{ matrix.playbook }}.yml | |
- name: Run playbook. | |
run: ansible-playbook --diff -i 127.0.0.1, -c local --skip-tags no_ci ${{ matrix.playbook }}.yml |