Skip to content

Commit

Permalink
Run dev and dev-prod in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 7, 2024
1 parent 3521311 commit 050b276
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@ jobs:
- run: yarn install --ignore-scripts
- run: yarn run lint

build-dev:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version:
- 18.x
- 20.x
- 22.x
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --ignore-scripts
- run: yarn run dev-ci
- run: yarn run dev-prod-ci

build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
],
"scripts": {
"lint": "eslint src/*.js",
"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",
"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",
"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",
"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",
"build": "node ./bin/generate.js",
Expand Down Expand Up @@ -89,5 +91,6 @@
},
"pre-commit": [
"lint"
]
],
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

0 comments on commit 050b276

Please sign in to comment.