Merge pull request #105 from g-maxime/rawcooked-24.11 #100
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: Checks | |
on: [push, pull_request] | |
jobs: | |
Test: | |
strategy: | |
fail-fast: false | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: List changed files | |
id: changed-files | |
uses: jitterbit/get-changed-files@v1 | |
- name: Install repository | |
run: | | |
brew tap mediaarea/homebrew-mediaarea $PWD | |
- name: Check | |
run: | | |
for file in ${{ steps.changed-files.outputs.added_modified }} ; do | |
if [[ "${file##*.}" != "rb" ]] ; then | |
continue | |
fi | |
formula=$(basename -s .rb $file) | |
if [[ "$(dirname $file)" == "Casks" ]] ; then | |
brew install --cask $formula | |
brew audit --cask --strict $formula | |
else | |
brew install $formula | |
brew audit --strict $formula | |
fi | |
done |