forked from Mirror/ollama4j
Updated 'build-docs' to 'docs' and 'start-docs' to 'docs-dev' for clarity.
Updated a workflow to run tests and build docs on pull requests.
This commit is contained in:
@@ -37,3 +37,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: mvn --file pom.xml -U clean verify -Pintegration-tests
|
run: mvn --file pom.xml -U clean verify -Pintegration-tests
|
||||||
|
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20.x'
|
||||||
|
- run: cd docs && npm ci
|
||||||
|
- run: cd docs && npm run build
|
||||||
4
Makefile
4
Makefile
@@ -29,10 +29,10 @@ list-releases:
|
|||||||
--compressed \
|
--compressed \
|
||||||
--silent | jq -r '.components[].version'
|
--silent | jq -r '.components[].version'
|
||||||
|
|
||||||
build-docs:
|
docs:
|
||||||
npm i --prefix docs && npm run build --prefix docs
|
npm i --prefix docs && npm run build --prefix docs
|
||||||
|
|
||||||
start-docs:
|
docs-dev:
|
||||||
npm i --prefix docs && npm run start --prefix docs
|
npm i --prefix docs && npm run start --prefix docs
|
||||||
|
|
||||||
start-cpu:
|
start-cpu:
|
||||||
|
|||||||
Reference in New Issue
Block a user