Skip to content

Style check

Style check #551

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Style check
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 7 * * *'
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a job called "style-check"
style-check:
# The type of runner that the job will run on
runs-on: macos-13
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4.1.2
# Runs a single command using the runners shell
- name: Brew Update
run: |
brew update
brew --version
- name: Setup Homebrew Tap
run: |
mkdir -p /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade
cp -rf . /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade
- name: Style check
run: brew style --display-cop-names buo/homebrew-cask-upgrade