Skip to content

Commit 463c3a8

Browse files
committed
Simplify conditions
1 parent 6319064 commit 463c3a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
4040
- name: gcc and ridk version (mingw)
41-
if: startsWith(matrix.os, 'windows')
41+
if: matrix.os == 'windows'
4242
run: |
4343
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
4444
if ($plat.Contains('mingw')) {
@@ -64,10 +64,10 @@ jobs:
6464
- run: bundle exec rake --version
6565

6666
- name: which ruby, rake
67-
if: startsWith(matrix.os, 'windows') == false
67+
if: matrix.os != 'windows'
6868
run: which -a ruby rake
6969
- name: where ruby, rake
70-
if: startsWith(matrix.os, 'windows')
70+
if: matrix.os == 'windows'
7171
run: |
7272
$ErrorActionPreference = 'Continue'
7373
$where = 'ruby', 'rake'

0 commit comments

Comments
 (0)