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 e18af67
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 18 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -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


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 e18af67

Please sign in to comment.