Skip to content

Commit

Permalink
fix(Windows, Bun & Deno): startService doesn't ends (#118)
Browse files Browse the repository at this point in the history
* fix(Bun & Deno): startService doesn't ends

* fix(Windows): change process end

* chore: debug PID on Windows

* chore: include shx

* fix(Windows): change npm to npm.cmd

* refactor: define responsibilities

* ci: fix c8 command

* ci: revert coverage command

* ci: revert coverage command

* ci: change coverage to Node 21

* ci: include coverage report

* ci: remove legacy coverage

* ci: improve coverage configs

* ci: config coverage target

* debug: simplify PID

* chore: remove startScript for Windows, Bun & Deno

* ci: improve timeout

* ci: revert `startService` changes

* ci: debug WIndows process

* fix: manual background process end on Windows

* debug: deno process doesn't end

* docs: remove Windows warnings
  • Loading branch information
wellwelwel committed Mar 24, 2024
1 parent d224bbd commit 2dd7fe0
Show file tree
Hide file tree
Showing 51 changed files with 699 additions and 1,146 deletions.
7 changes: 5 additions & 2 deletions .c8rc
@@ -1,5 +1,8 @@
{
"include": ["ci/src/**"],
"all": true,
"exclude": ["ci/src/@types/**"]
"include": ["src/**"],
"exclude": ["src/@types/**"],
"extension": ["ts"],
"reporter": ["text", "lcov"],
"clean": true
}
4 changes: 2 additions & 2 deletions .github/workflows/ci-coverage.yml
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 1
timeout-minutes: 5
name: Coverage
steps:
- name: ➕ Actions - Checkout
Expand All @@ -18,7 +18,7 @@ jobs:
- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '21.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-website.yml
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
name: Website
steps:
- name: Actions - Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -64,7 +64,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: ['0.5.3', '01', 'canary']
node-version: ['01', 'canary']
name: Bun ${{ matrix.node-version }}
steps:
- name: ➕ Actions - Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs-deploy.yml
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Deploy Website
steps:
- name: Actions - Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Expand Up @@ -10,6 +10,7 @@ permissions:
jobs:
release-please:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Release Please
steps:
- name: 🤝 Release Please
Expand Down
9 changes: 2 additions & 7 deletions codecov.yml
@@ -1,11 +1,6 @@
codecov:
disable_default_path_fixes: true

fixes:
- 'ci/::/'

coverage:
status:
project:
default:
target: 75%
target: 84%
threshold: 2%
6 changes: 2 additions & 4 deletions fixtures/server/package.json
@@ -1,8 +1,6 @@
{
"scripts": {
"start:a:ts": "tsx server-a.ts",
"start:a:js": "node server-a.js",
"start:b:ts": "tsx server-b.ts",
"start:b:js": "node server-b.js"
"start:ts": "tsx server-b.ts",
"start:js": "node server-b.js"
}
}

0 comments on commit 2dd7fe0

Please sign in to comment.