Skip to content

Commit 8716592

Browse files
committed
ci: add Windows runner to self-test matrix
Run the self-test workflow on both ubuntu-latest and windows-latest to validate Windows compatibility. PR comments are only posted from the ubuntu job to avoid duplicates.
1 parent cb06023 commit 8716592

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/commit-check.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ on:
88

99
jobs:
1010
commit-check:
11-
runs-on: ubuntu-latest
12-
permissions: # use permissions because of use pr-comments
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
permissions:
1316
contents: read
1417
pull-requests: write
1518
steps:
@@ -23,5 +26,6 @@ jobs:
2326
author-name: true
2427
author-email: true
2528
job-summary: true
26-
pr-comments: ${{ github.event_name == 'pull_request' }}
29+
# Only post PR comments from the ubuntu job to avoid duplicates
30+
pr-comments: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' }}
2731
pr-title: true

0 commit comments

Comments
 (0)