Skip to content

Commit 050b276

Browse files
committed
Run dev and dev-prod in ci
1 parent 3521311 commit 050b276

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,32 @@ jobs:
1616
- run: yarn install --ignore-scripts
1717
- run: yarn run lint
1818

19+
build-dev:
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
node-version:
25+
- 18.x
26+
- 20.x
27+
- 22.x
28+
steps:
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
- name: Checkout
34+
uses: actions/[email protected]
35+
with:
36+
persist-credentials: false
37+
- uses: actions/cache@v2
38+
with:
39+
path: '**/node_modules'
40+
key: ${{ runner.os }}-build-modules-${{ hashFiles('**/yarn.lock') }}
41+
- run: yarn install --ignore-scripts
42+
- run: yarn run dev-ci
43+
- run: yarn run dev-prod-ci
44+
1945
build:
2046
runs-on: ${{ matrix.os }}
2147
strategy:

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
],
5353
"scripts": {
5454
"lint": "eslint src/*.js",
55+
"dev-prod-ci": "comunica-compile-config config/config-default.json > .tmp-comunica-engine.js && ./bin/queries-to-json.js && webpack --config webpack.config.js --mode production",
56+
"dev-ci": "comunica-compile-config config/config-default.json > .tmp-comunica-engine.js && ./bin/queries-to-json.js && webpack --config webpack.config.js --mode development",
5557
"dev-prod": "comunica-compile-config config/config-default.json > .tmp-comunica-engine.js && ./bin/queries-to-json.js && webpack serve --config webpack.config.js --mode production",
5658
"dev": "comunica-compile-config config/config-default.json > .tmp-comunica-engine.js && ./bin/queries-to-json.js && webpack serve --config webpack.config.js --mode development",
5759
"build": "node ./bin/generate.js",
@@ -89,5 +91,6 @@
8991
},
9092
"pre-commit": [
9193
"lint"
92-
]
94+
],
95+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
9396
}

0 commit comments

Comments
 (0)