forked from Mirror/ollama4j
Update build-on-pull-request.yml
This commit is contained in:
12
.github/workflows/build-on-pull-request.yml
vendored
12
.github/workflows/build-on-pull-request.yml
vendored
@@ -14,8 +14,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -33,11 +32,18 @@ jobs:
|
|||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn --file pom.xml -U clean package
|
run: mvn --file pom.xml -U clean package
|
||||||
|
|
||||||
- name: Call run-tests.yml
|
run-tests:
|
||||||
|
needs: build
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
branch: ${{ github.head_ref || github.ref_name }}
|
branch: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
|
build-docs:
|
||||||
|
needs: [build, run-tests]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user