Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 29 additions & 25 deletions .github/workflows/code-health-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,39 @@ jobs:
name: Run MongoDB tests
# Code health disabled on forks for now
# if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
if: github.event.pull_request.user.login == 'dependabot[bot]'
# if: github.event.pull_request.user.login == 'dependabot[bot]'
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
if: matrix.os == 'ubuntu-latest'
- uses: actions/checkout@v5
- uses: docker/setup-docker-action@v4
if: matrix.os == 'ubuntu-latest'
name: Setup Docker Environment
with:
set-host: true
- uses: actions/setup-node@v6
with:
node-version-file: package.json
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Check user
run: echo "USER = $USER"
env:
SKIP_ATLAS_TESTS: "true"
SKIP_ATLAS_LOCAL_TESTS: "true"
- name: Upload test results
if: always() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v5
with:
name: test-results
path: coverage/lcov.info
USER_NAME: ${{github.event.pull_request.user.login}}
# - uses: GitHubSecurityLab/actions-permissions/monitor@v1
# if: matrix.os == 'ubuntu-latest'
# - uses: actions/checkout@v5
# - uses: docker/setup-docker-action@v4
# if: matrix.os == 'ubuntu-latest'
# name: Setup Docker Environment
# with:
# set-host: true
# - uses: actions/setup-node@v6
# with:
# node-version-file: package.json
# cache: "npm"
# - name: Install dependencies
# run: npm ci
# - name: Run tests
# run: npm test
# env:
# SKIP_ATLAS_TESTS: "true"
# SKIP_ATLAS_LOCAL_TESTS: "true"
# - name: Upload test results
# if: always() && matrix.os == 'ubuntu-latest'
# uses: actions/upload-artifact@v5
# with:
# name: test-results
# path: coverage/lcov.info
39 changes: 20 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"globals": "^16.3.0",
"knip": "^5.63.1",
"mongodb": "^6.19.0",
"mongodb-runner": "^5.9.2",
"mongodb-runner": "^6.0.0",
"openapi-types": "^12.1.3",
"openapi-typescript": "^7.9.1",
"prettier": "^3.6.2",
Expand Down
Loading