Skip to content

Commit

Permalink
ci(test): Runs on Apple Silicon Mac
Browse files Browse the repository at this point in the history
To test whether it works not only on Intel Mac.
  • Loading branch information
5ouma committed Feb 14, 2024
1 parent 21fc6c5 commit 1eb98df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/detail-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🧪 Detail Test
name: 🔬 Detail Test

on:
schedule:
Expand All @@ -9,7 +9,7 @@ jobs:
Test:
strategy:
matrix:
os: [Ubuntu-Latest, macOS-13]
os: [Ubuntu-Latest, macOS-13, macOS-14]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -20,14 +20,14 @@ jobs:
- name: 🍺 Uninstall Homebrew Related
env:
NONINTERACTIVE: 1
if: ${{ matrix.os == 'macOS-13' }}
if: ${{ matrix.os == 'macOS-13' || matrix.os == 'macOS-14' }}
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
rm -fv /Library/Frameworks/Python.framework/Versions/3.12/bin/{2to3-3.12,idle3.12,pydoc3.12,python3.12,python3.12-config}
- name: 📦 Skip mas
id: skip
if: ${{ matrix.os == 'macOS-13' }}
if: ${{ matrix.os == 'macOS-13' || matrix.os == 'macOS-14' }}
run: |
declare HOMEBREW_BUNDLE_MAS_SKIP && HOMEBREW_BUNDLE_MAS_SKIP="$(curl -s "https://raw.githubusercontent.com/5ouma/dotfiles/${GITHUB_HEAD_REF:-HEAD}/data/Brewfile" | sed -nE 's/^mas.* ([0-9]+)/\1/gp' | tr '\n' ' ')"
echo "HOMEBREW_BUNDLE_MAS_SKIP=$HOMEBREW_BUNDLE_MAS_SKIP" | tee -a "$GITHUB_OUTPUT"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
Test:
strategy:
matrix:
os: [Ubuntu-Latest, macOS-13]
os: [Ubuntu-Latest, macOS-13, macOS-14]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -30,7 +30,7 @@ jobs:
brew install atuin gitlint mackup mise pre-commit sheldon vim zoxide zsh
- name: 🍎 Install macOS tools via Homebrew
if: ${{ matrix.os == 'macOS-13' }}
if: ${{ matrix.os == 'macOS-13' || matrix.os == 'macOS-14' }}
run: brew install 5ouma/formula/mksei blacktop/tap/lporg

- name: ⚙️ Run setup
Expand Down

0 comments on commit 1eb98df

Please sign in to comment.