feat: add optional deletion prompts for associated files and other fixes #18
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: Continuous Integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Homebrew | |
run: | | |
if ! command -v brew >/dev/null; then | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
fi | |
- name: Install dependencies (jq, newt, zsh) | |
run: | | |
brew install jq newt zsh | |
- name: Make script executable | |
run: chmod +x ./application_size_checker.sh | |
- name: Run script using zsh | |
shell: bash | |
env: | |
PATH: /opt/homebrew/bin:$PATH | |
run: | | |
set -e | |
zsh ./application_size_checker.sh | |
- name: Upload logs | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: application_size_checker-log | |
path: application_size_checker.log |