Skip to content

Commit 5bb98d2

Browse files
authored
chore: switch to a matrix for forks (#191)
1 parent c117268 commit 5bb98d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/code_health_fork.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ jobs:
1111
run-tests:
1212
name: Run MongoDB tests
1313
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
14-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
fail-fast: false
18+
runs-on: ${{ matrix.os }}
1519
steps:
1620
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
21+
if: matrix.os != 'windows-latest'
1722
- uses: actions/checkout@v4
1823
- uses: actions/setup-node@v4
1924
with:
@@ -24,7 +29,7 @@ jobs:
2429
- name: Run tests
2530
run: npm test
2631
- name: Upload test results
27-
if: always()
32+
if: always() && matrix.os == 'ubuntu-latest'
2833
uses: actions/upload-artifact@v4
2934
with:
3035
name: test-results

0 commit comments

Comments
 (0)