From e18af6774efaa8925a9da7ba59d7f15bcff65052 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 6 Dec 2023 01:04:19 +0400 Subject: [PATCH] fix test workflow --- .github/workflows/nodejs.yml | 14 +++++++++++--- package.json | 7 ++++--- samples/ace-builds-cdn/package.json | 12 ++++++++++++ samples/ace-builds-parcel/package.json | 2 +- samples/ace-builds-vitejs/package.json | 2 +- samples/ace-builds-webpack/package.json | 2 +- samples/ace-code-parcel/package.json | 2 +- samples/ace-code-vitejs-typescript/index.html | 2 +- samples/ace-code-vitejs-typescript/package.json | 2 +- samples/ace-code-vitejs/package.json | 2 +- samples/ace-code-webpack/package.json | 2 +- samples/cloudscape-ace-example/package.json | 6 +++--- samples/react-ace-example/package.json | 2 +- 13 files changed, 39 insertions(+), 18 deletions(-) create mode 100644 samples/ace-builds-cdn/package.json diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5d4138f..38a4cea 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - uses: actions/checkout@v2 @@ -28,6 +28,14 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm i - - run: npm run build - - run: npm run start-test-server && npm run test + - run: | + for i in samples/*; do + pushd $i || continue; + echo --- $i; + npm i; + npm run build; + popd; + done + - run: npm run start-test-server & npm run test; kill %1 + \ No newline at end of file diff --git a/package.json b/package.json index 87471a5..8f11ae7 100644 --- a/package.json +++ b/package.json @@ -10,15 +10,16 @@ "./samples/*" ], "dependencies": { - "ace-builds": "^1.31.2", - "ace-code": "^1.31.2", - "ace-linters": "^1.0.3", + "ace-builds": "latest", + "ace-code": "latest", + "ace-linters": "latest", "typescript": "^5.3.2" }, "devDependencies": { "@types/chai": "^4.3.4", "@types/mocha": "^5.2.7", "chai": "^4.3.7", + "http-server": "^14.1.1", "mocha": "^10.2.0", "process": "^0.11.10", "puppeteer": "^19.9.1", diff --git a/samples/ace-builds-cdn/package.json b/samples/ace-builds-cdn/package.json new file mode 100644 index 0000000..49c1218 --- /dev/null +++ b/samples/ace-builds-cdn/package.json @@ -0,0 +1,12 @@ +{ + "name": "ace-builds-cdn", + "version": "1.0.0", + "scripts": { + "test": "echo", + "build": "echo", + "start": "echo" + }, + "devDependencies": { + "ace-builds": "latest" + } +} diff --git a/samples/ace-builds-parcel/package.json b/samples/ace-builds-parcel/package.json index ded07db..95244a2 100644 --- a/samples/ace-builds-parcel/package.json +++ b/samples/ace-builds-parcel/package.json @@ -6,7 +6,7 @@ "start": "parcel ./index.html" }, "devDependencies": { - "ace-builds": "^1.15.3", + "ace-builds": "latest", "buffer": "^5.7.1", "parcel": "^2.8.3", "process": "^0.11.10" diff --git a/samples/ace-builds-vitejs/package.json b/samples/ace-builds-vitejs/package.json index 9831e9a..1ebdaf7 100644 --- a/samples/ace-builds-vitejs/package.json +++ b/samples/ace-builds-vitejs/package.json @@ -6,7 +6,7 @@ "build": "vite build" }, "devDependencies": { - "ace-builds": "^1.15.3", + "ace-builds": "latest", "vite": "^4.0.3" }, "type": "module" diff --git a/samples/ace-builds-webpack/package.json b/samples/ace-builds-webpack/package.json index aa2da44..34d8eef 100644 --- a/samples/ace-builds-webpack/package.json +++ b/samples/ace-builds-webpack/package.json @@ -6,7 +6,7 @@ "start": "webpack-dev-server" }, "devDependencies": { - "ace-builds": "^1.15.3", + "ace-builds": "latest", "webpack": "^5.75.0", "webpack-cli": "^5.0.1", "webpack-dev-server": "^4.11.1", diff --git a/samples/ace-code-parcel/package.json b/samples/ace-code-parcel/package.json index 2c762e8..7527c9d 100644 --- a/samples/ace-code-parcel/package.json +++ b/samples/ace-code-parcel/package.json @@ -6,7 +6,7 @@ "start": "parcel ./index.html" }, "devDependencies": { - "ace-code": "^1.15.3", + "ace-code": "latest", "parcel": "^2.8.3" } } diff --git a/samples/ace-code-vitejs-typescript/index.html b/samples/ace-code-vitejs-typescript/index.html index 795f1ec..c994e22 100644 --- a/samples/ace-code-vitejs-typescript/index.html +++ b/samples/ace-code-vitejs-typescript/index.html @@ -7,6 +7,6 @@
- + diff --git a/samples/ace-code-vitejs-typescript/package.json b/samples/ace-code-vitejs-typescript/package.json index e50dd50..67fe1fd 100644 --- a/samples/ace-code-vitejs-typescript/package.json +++ b/samples/ace-code-vitejs-typescript/package.json @@ -7,7 +7,7 @@ "test:tsc": "tsc --project tsconfig.json" }, "devDependencies": { - "ace-code": "^1.15.3", + "ace-code": "latest", "vite": "^4.0.3" }, "type": "module" diff --git a/samples/ace-code-vitejs/package.json b/samples/ace-code-vitejs/package.json index 650b948..f7f27b9 100644 --- a/samples/ace-code-vitejs/package.json +++ b/samples/ace-code-vitejs/package.json @@ -6,7 +6,7 @@ "build": "vite build" }, "devDependencies": { - "ace-code": "^1.15.3", + "ace-code": "latest", "vite": "^4.0.3" }, "type": "module" diff --git a/samples/ace-code-webpack/package.json b/samples/ace-code-webpack/package.json index a940b21..acecbe1 100644 --- a/samples/ace-code-webpack/package.json +++ b/samples/ace-code-webpack/package.json @@ -6,7 +6,7 @@ "start": "webpack-dev-server" }, "devDependencies": { - "ace-code": "^1.15.3", + "ace-code": "latest", "webpack": "^5.75.0", "webpack-cli": "^5.0.1", "webpack-dev-server": "^4.11.1", diff --git a/samples/cloudscape-ace-example/package.json b/samples/cloudscape-ace-example/package.json index e43e824..fe41513 100644 --- a/samples/cloudscape-ace-example/package.json +++ b/samples/cloudscape-ace-example/package.json @@ -8,10 +8,10 @@ }, "dependencies": { "@cloudscape-design/components": "^3.0.339", - "ace-code": "1.30.0", - "ace-linters": "^1.0.3", + "ace-code": "latest", + "ace-linters": "latest", "file-loader": "6.2.0", - "next": "canary", + "next": "*", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/samples/react-ace-example/package.json b/samples/react-ace-example/package.json index e98668c..793889e 100644 --- a/samples/react-ace-example/package.json +++ b/samples/react-ace-example/package.json @@ -10,7 +10,7 @@ }, "type": "module", "dependencies": { - "ace-builds": "^1.16.0", + "ace-builds": "latest", "react": "^18.2.0", "react-ace": "^10.1.0", "react-dom": "^18.2.0"