Fix Homebrew PATH setup for GitHub Actions #5
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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Homebrew | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $GITHUB_ENV | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
- name: Install dependencies | |
run: | | |
brew install parallel jq | |
- name: Suppress GNU Parallel Citation Notice | |
run: parallel --citation | |
- name: Make script executable | |
run: chmod +x ./application_size_checker.sh | |
- name: Run script | |
run: ./application_size_checker.sh | |