Check build #8
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: Check build | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
issue_comment: | |
types: created | |
jobs: | |
build: | |
name: Check Build | |
runs-on: macos-latest | |
if: > | |
github.event_name == 'pull_request' || | |
(github.event_name == 'issue_comment' && | |
github.event.issue.pull_request != null && | |
github.event.comment.body == '/build') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Mise | |
run: | | |
curl https://mise.run | sh | |
mise install | |
- name: Add Tuist to PATH | |
run: | | |
echo "Adding tuist to PATH..." | |
export PATH="$HOME/.local/share/mise/plugins/tuist/bin:$PATH" | |
echo "New PATH: $PATH" | |
which tuist || echo "Tuist not found in PATH" | |
- name: Install Tuist dependencies | |
run: tuist install | |
- name: Build Project | |
run: tuist build |