Skip to content

Commit 64eef87

Browse files
committed
fx action
1 parent 6a05d36 commit 64eef87

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/it-test.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,26 @@ jobs:
7373
run: |
7474
winget install mikefarah.yq
7575
76-
- name: Run init tests
77-
id: run_init_tests
76+
- name: Run init tests on Windows
77+
if: matrix.os == 'windows-latest'
78+
id: run_init_tests_windows
7879
continue-on-error: true
79-
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
80+
shell: pwsh
8081
env:
8182
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
8283
run: |
83-
if [ "${{ matrix.os }}" = "windows-latest" ]; then
84-
# Run PowerShell script on Windows
85-
./integration-tests/run.ps1
86-
else
87-
# Run Bash script on Unix/Linux
88-
chmod +x integration-tests/run.sh
89-
./integration-tests/run.sh
90-
fi
84+
./integration-tests/run.ps1
85+
86+
- name: Run init tests on Unix
87+
if: matrix.os != 'windows-latest'
88+
id: run_init_tests_unix
89+
continue-on-error: true
90+
shell: bash
91+
env:
92+
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
93+
run: |
94+
chmod +x integration-tests/run.sh
95+
./integration-tests/run.sh
9196
9297
- name: Run tool tests
9398
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)