Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add database parameter to MongoDB collection operations to support multi-database#455

feat: add database parameter to MongoDB collection operations to support multi-database

feat: add database parameter to MongoDB collection operations to support multi-database #455

Workflow file for this run

name:Tests
on:
push:
pull_request:
jobs:
detect-changes:
runs-on:ubuntu-latest
if:${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.fork) }}
outputs:
changes:${{ steps.detect-changes.outputs.changes }}
steps:
-uses:actions/checkout@v6
-uses:dorny/paths-filter@v3
id:detect-changes
with:
filters:|
package-json: &package-json
- package.json
- package-lock.json
docs: &docs
- docs/**/*
src: &src
- extra/**/*.js
- src/**/*.ts
- gulpfile.js
- tsconfig.json
- *package-json
src-or-tests: &src-or-tests
- *src
- test/**/*
- .c8rc.json
- .github/workflows/test/**/*
- .github/workflows/test*.yml
- .mocharc.json
- .nvmrc
lint: &lint
- *src-or-tests
- .prettierrc.json
- eslint.config.mjs
formatting:
if:contains(needs.detect-changes.outputs.changes, 'lint')
needs:detect-changes
runs-on:ubuntu-latest
steps:
-uses:actions/checkout@v6
-uses:actions/setup-node@v6
with:
node-version-file:.nvmrc
-run:npm ci
-run:npm run lint
-run:npm run format:ci
docs:
if:contains(needs.detect-changes.outputs.changes, 'docs')
needs:detect-changes
runs-on:ubuntu-latest
defaults:
run:
working-directory:./docs
steps:
-uses:actions/checkout@v6
-uses:actions/setup-node@v6
with:
node-version-file:.nvmrc
-run:npm ci
-run:npm run build
build:
if:contains(needs.detect-changes.outputs.changes, 'src-or-tests')
needs:detect-changes
runs-on:ubuntu-latest
steps:
-uses:actions/checkout@v6
-uses:actions/setup-node@v6
with:
node-version-file:.nvmrc
-run:npm install
-run:|
if [ -n "$(git status --porcelain)" ]; then
echo "package-lock.json is not up to date or was generated with a different npm version than the one shipped with Node.js $(cat .nvmrc)"
exit 1
fi
-run:npm run compile
-uses:actions/upload-artifact@v5
with:
name:build
path:build/
retention-days:1
tests-linux:
if:contains(needs.detect-changes.outputs.changes, 'src-or-tests')
needs:[detect-changes, build]
strategy:
fail-fast:false
matrix:
node-version:[20, 24]
uses:./.github/workflows/tests-linux.yml
with:
node-version:${{matrix.node-version}}
tests-windows:
if:contains(needs.detect-changes.outputs.changes, 'src-or-tests')
needs:[detect-changes, build]
uses:./.github/workflows/tests-windows.yml
with:
node-version:22
coverage:
if:contains(needs.detect-changes.outputs.changes, 'src-or-tests')
runs-on:ubuntu-latest
needs:[detect-changes, tests-linux, tests-windows]
steps:
-uses:coverallsapp/github-action@v2
with:
parallel-finished:true
all-passed:
runs-on:ubuntu-latest
if:always()
needs:
-build
-coverage
-docs
-formatting
-tests-linux
-tests-windows
steps:
-run:exit ${{ contains(needs.*.result, 'failure') && 1 || 0 }}

[8]ページ先頭

©2009-2025 Movatter.jp