From 60115a94d23a4f1b1bad65dd30bbf1a42c228c28 Mon Sep 17 00:00:00 2001 From: Robert Kiel Date: Sun, 19 Jun 2022 20:51:31 +0200 Subject: [PATCH 1/4] add absolute file prefix --- packages/openapi-framework/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openapi-framework/index.ts b/packages/openapi-framework/index.ts index 7c577c81..ab53a186 100644 --- a/packages/openapi-framework/index.ts +++ b/packages/openapi-framework/index.ts @@ -235,7 +235,7 @@ export default class OpenAPIFramework implements IOpenAPIFramework { // as `default` property // - file is a ECMAScript module, and `export default` appears // at top-level - const imported = await import(fsRoutesItem.path); + const imported = await import(`file://${fsRoutesItem.path}`); return { path: fsRoutesItem.route, module: imported.default ?? imported, From aa32ce58596ff03eaffa5373585adf9a93f24b46 Mon Sep 17 00:00:00 2001 From: Robert Kiel Date: Sun, 19 Jun 2022 21:08:19 +0200 Subject: [PATCH 2/4] run on macos --- .github/workflows/pr.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e78f5203..b6217236 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,16 +2,15 @@ name: PR Build on: pull_request jobs: code-quality: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: lts/* - - run: npm ci - - run: npm run lint - - run: npm run bootstrap - - run: npm run cover - - run: npm run combine-coverage + - run: | + npm ci + cd packages/express-openapi + npm run test From c1e9bff95fde2d304907c870bc34e40304e03b1e Mon Sep 17 00:00:00 2001 From: Robert Kiel Date: Sun, 19 Jun 2022 21:09:39 +0200 Subject: [PATCH 3/4] run on macos --- .github/workflows/pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b6217236..2e701264 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,6 +10,7 @@ jobs: node-version: lts/* - run: | npm ci + npm run bootstrap cd packages/express-openapi npm run test From 2ad669d86bc52285d7f12062631698e7c2ada5d3 Mon Sep 17 00:00:00 2001 From: Robert Kiel Date: Sun, 19 Jun 2022 21:13:34 +0200 Subject: [PATCH 4/4] restore PR action --- .github/workflows/pr.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2e701264..e78f5203 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,16 +2,16 @@ name: PR Build on: pull_request jobs: code-quality: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: lts/* - - run: | - npm ci - npm run bootstrap - cd packages/express-openapi - npm run test + - run: npm ci + - run: npm run lint + - run: npm run bootstrap + - run: npm run cover + - run: npm run combine-coverage