Skip to content

Commit

Permalink
fix test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Aug 5, 2024
1 parent e21152c commit 3e89edd
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build
- 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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions samples/ace-builds-cdn/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "ace-builds-cdn",
"version": "1.0.0",
"scripts": {
"test": "echo",
"build": "echo",
"start": "echo"
},
"devDependencies": {
"ace-builds": "latest"
}
}
2 changes: 1 addition & 1 deletion samples/ace-builds-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion samples/ace-builds-vitejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "vite build"
},
"devDependencies": {
"ace-builds": "^1.15.3",
"ace-builds": "latest",
"vite": "^4.0.3"
},
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion samples/ace-builds-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion samples/ace-code-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "parcel ./index.html"
},
"devDependencies": {
"ace-code": "^1.15.3",
"ace-code": "latest",
"parcel": "^2.8.3"
}
}
2 changes: 1 addition & 1 deletion samples/ace-code-vitejs-typescript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="container" style="height: 100px"></div>
<script type="module" src="/src/index.js"></script>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion samples/ace-code-vitejs-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion samples/ace-code-vitejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "vite build"
},
"devDependencies": {
"ace-code": "^1.15.3",
"ace-code": "latest",
"vite": "^4.0.3"
},
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion samples/ace-code-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions samples/cloudscape-ace-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion samples/react-ace-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e89edd

Please sign in to comment.