name: Build

on:
  push:
    branches: [ master ]

jobs:
  build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2

    - name: Update Homebrew
      run: brew update

    - name: Install Ansible
      run: brew install ansible

    - name: Lint Ansible Playbook
      run: ansible-playbook site.yml --syntax-check

    - name: Run Ansible Playbook
      run: ansible-playbook site.yml --diff

name: Build

on:
  push:
    branches: [ master ]

jobs:
  build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2

    - name: Setup Cache
      uses: actions/cache@v2
      with:
        path: |
          ~/Library/Caches/Homebrew
          ~/.cache/pip
          ~/.npm
        key: cache

    - name: Update Homebrew
      run: brew update

    - name: Install Ansible
      run: brew install ansible

    - name: Lint Ansible Playbook
      run: ansible-playbook site.yml --syntax-check

    - name: Run Ansible Playbook
      run: ansible-playbook site.yml --diff

Add Cache for GitHub Actions
Add Cache for GitHub Actions
