Skip to content

Commit c43d97b

Browse files
committed
add test-run workflow
1 parent c2603ad commit c43d97b

3 files changed

Lines changed: 40 additions & 8 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*Issue #, if available:*
2+
3+
*Description of changes:*
4+
5+
6+
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

.github/workflows/nodejs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
permissions:
13+
contents: read # to fetch code (actions/checkout)
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [16.x]
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- run: npm i
31+
- run: npm run build
32+
- run: npm run start-test-server && npm run test
33+

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
"name": "ace-samples",
33
"version": "1.0.0",
44
"scripts": {
5-
"build:ace-builds-parcel": "cd samples/ace-builds-parcel && npm run build",
6-
"build:ace-builds-vitejs": "cd samples/ace-builds-vitejs && npm run build",
7-
"build:ace-builds-webpack": "cd samples/ace-builds-webpack && npm run build",
8-
"build:ace-code-parcel": "cd samples/ace-code-parcel && npm run build",
9-
"build:ace-code-vitejs": "cd samples/ace-code-vitejs && npm run build",
10-
"build:ace-code-webpack": "cd samples/ace-code-webpack && npm run build",
11-
"build:react-ace-example": "cd samples/react-ace-example && npm run build",
12-
"build": "npm run build:ace-builds-parcel && npm run build:ace-builds-vitejs && npm run build:ace-builds-webpack && npm run build:ace-code-parcel && npm run build:ace-code-vitejs && npm run build:ace-code-webpack && npm run build:react-ace-example",
5+
"build": "npm run build -w samples",
136
"start-test-server": "http-server --cors='*' samples",
147
"test": "mocha --timeout=5000"
158
},

0 commit comments

Comments
 (0)