Skip to content

Commit 072d85a

Browse files
committed
fix: update OS condition checks for BATS installation and PHP tests
1 parent b97c682 commit 072d85a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/quality.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Install BATS
7777
run: |
78-
if [ "${{ matrix.os }}" = "macos-latest" ]; then
78+
if [ "${{ runner.os }}" = "macOS" ]; then
7979
brew install bats-core
8080
else
8181
sudo apt-get update
@@ -113,10 +113,11 @@ jobs:
113113
run: |
114114
export PHPVM_DIR="$HOME/.phpvm-test"
115115
mkdir -p "$PHPVM_DIR"
116+
chmod +x install.sh
116117
./install.sh
117118
118119
- name: Test PHP Installation (macOS)
119-
if: matrix.os == 'macos-latest'
120+
if: runner.os == 'macOS'
120121
run: |
121122
source "$HOME/.phpvm-test/phpvm.sh"
122123
@@ -133,7 +134,7 @@ jobs:
133134
phpvm current
134135
135136
- name: Test PHP Installation (Ubuntu)
136-
if: matrix.os == 'ubuntu-latest'
137+
if: runner.os == 'Linux'
137138
run: |
138139
source "$HOME/.phpvm-test/phpvm.sh"
139140

0 commit comments

Comments
 (0)