Skip to content

Commit f4ad49f

Browse files
committed
fix: mise PATH 문제 해결 및 설치 확인 단계 추가
1 parent 546fe8d commit f4ad49f

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
branches: [main, develop, release/**]
66
push:
7-
branches: [feat/**] # 테스트용 추가
7+
branches: [feat/**]
88

99
env:
1010
HOMEBREW_NO_AUTO_UPDATE: 1
@@ -46,14 +46,6 @@ jobs:
4646
restore-keys: |
4747
${{ runner.os }}-tuist-
4848
49-
- name: Cache Homebrew packages
50-
uses: actions/cache@v3
51-
with:
52-
path: /opt/homebrew/Cellar
53-
key: ${{ runner.os }}-brew-swiftlint-mise
54-
restore-keys: |
55-
${{ runner.os }}-brew-
56-
5749
- name: Set up Ruby
5850
uses: ruby/setup-ruby@v1
5951
with:
@@ -64,21 +56,35 @@ jobs:
6456
bundle config set --local path 'vendor/bundle'
6557
bundle config set --local jobs 4
6658
59+
# Homebrew 설치를 백그라운드에서 실행
6760
(brew install swiftlint mise) &
6861
BREW_PID=$!
6962
63+
# Bundle install 동시 실행
7064
bundle install --jobs 4 --retry 3
7165
66+
# Brew 설치 완료 대기
7267
wait $BREW_PID
7368
69+
- name: Verify mise installation
70+
run: |
71+
which mise || echo "mise not found in PATH"
72+
echo "PATH: $PATH"
73+
ls -la /opt/homebrew/bin/ | grep mise || echo "mise not in homebrew bin"
74+
7475
- name: Enable idiomatic version files for ruby
75-
run: mise settings add idiomatic_version_file_enable_tools ruby
76+
run: |
77+
export PATH="/opt/homebrew/bin:$PATH"
78+
mise settings add idiomatic_version_file_enable_tools ruby
7679
7780
- name: Install tools with mise
78-
run: mise install
81+
run: |
82+
export PATH="/opt/homebrew/bin:$PATH"
83+
mise install
7984
8085
- name: Check tuist version
8186
run: |
87+
export PATH="/opt/homebrew/bin:$PATH"
8288
eval "$(mise activate bash)"
8389
tuist version
8490
@@ -97,6 +103,7 @@ jobs:
97103
98104
- name: Tuist tasks (install + generate)
99105
run: |
106+
export PATH="/opt/homebrew/bin:$PATH"
100107
eval "$(mise activate bash)"
101108
tuist install
102109
tuist generate

0 commit comments

Comments
 (0)