This repository was archived by the owner on Oct 22, 2025. It is now read-only.
chore: add ci #5
This file contains hidden or 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: Homebrew Installation Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-installation: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - 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)"' >> $HOME/.zprofile | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| - name: Tap nrwl/nx | |
| run: | | |
| brew tap nrwl/nx | |
| - name: Test latest version installation | |
| run: | | |
| brew install nx | |
| nx --version | |
| brew uninstall nx | |
| - name: Test version 20 installation | |
| run: | | |
| brew install nx@20 | |
| nx --version | |
| brew uninstall nx@20 |