Update test matrix: macOS 11/12/13 #51
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: Dotfiles Installation | |
on: | |
push: | |
schedule: | |
- cron: "0 17 * * 4" # Every Thursday 5:00PM | |
jobs: | |
install: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-11, macos-12, macos-13] | |
steps: | |
- name: Clean up installed software | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
brew uninstall --ignore-dependencies --force $(brew list --formula) | |
# brew uninstall --cask --force $(brew list --cask) | |
brew uninstall --cask --force firefox google-chrome | |
brew cleanup --prune-prefix | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" | |
- name: Download and install available system updates | |
# Step disabled since it also tries to update macOS itself and there seems no way to disable this | |
if: ${{ false && startsWith(matrix.os, 'macos') }} | |
run: sudo softwareupdate -i -a | |
- name: Clone this repository | |
uses: actions/checkout@v3 | |
- name: Install using Makefile | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
make | |
else | |
sudo make | |
fi | |
- name: Verify runcom setup | |
run: source $HOME/.bash_profile | |
- name: Run tests | |
if: startsWith(matrix.os, 'macos') | |
run: make test |